Repository navigation
Fix the "unused function" warning caused by UuidStrHash - #2848
Conversation
e43db2e to
5c7a32a
Compare
|
Don't know why it still complaining about unused function on Linux GCC... |
|
I applaud what you're doing. |
|
I didn't see the original version of this that I suspect matches the title better which likely did what Ehsan is suggesting, just moving the #ifdef a few lines up to encompass There are a couple ways you might fix this. You could make the function non-static and define it in WinAdapter.cpp when |
|
Gregory Roth (@pow2clk) and Ehsan (@ehsannas) , thanks for your advises. I just pushed a change based on your suggestion, move UuidStrHash() to WinAdapter.cpp. The warning get fixed by doing this. |
Gregory Roth (pow2clk)
left a comment
There was a problem hiding this comment.
Looks good! thanks!
…osoft#2848)" This reverts commit 002ed97.
Move the declaration of UuidStrHash into #ifdef __EMULATE_UUID/#endif, and move its implementation to WinAdapter.cpp.