-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unused functions base64_decode, b64reverse. #104
Comments
base64_decode is called when you compile with Lua support, and b64reverse is called by base64_decode: Your linker will eliminate unused functions if you do not compile WITH_LUA |
Maybe surround it with |
Yes, this would eliminate the warning if you build an EXE without Lua. In the moment it happens to be that it is not needed when you compile with websocket but without Lua. But honestly, do you think a system built with like 10 different compilers and operating systems, dozens of WITH_SOMETHING combinations and multiple contributors should compile in all these hundreds of combinations warning free without hundreds of #ifdefs that would finally make the code unmaintainable? |
… without WITH_LUA See also issue #104
Now the following commands compile without warning on gcc 4.9.1 on Ubuntu Linux 14.10
WITH_LUA=1 gives a few warnings from third party components (Lua, sqlite) that I will definitely NOT fix - this has to be done by the programmers of the third party modules. I can not guarantee for any other compiler, any other operating system including different Linux distribution, not even different versions of gcc or different Ubuntu versions. And from time to time merges from other contributors may introduce warnings again, since I merge valuable improvements even if they have some warnings on some compilers the contributors probably does not use himself. |
These two warnings do no longer occur. |
Logger pattern specification and atomic logger delegate This closes civetweb#104. Signed-off-by: Aldrin Piri <aldrin@apache.org>
I like to compile with warnings as errors and as many warnings turned on as possible :) It likes to tell me off for unused functions (like these two)
The text was updated successfully, but these errors were encountered: