On Saturday, June 13, 2015 at 9:43:59 PM UTC-4, Nathan Ridge wrote: > > When compiling a program that uses cryptopp with clang, I get the > following warning: > > In file included from test.cpp: > In file included from cryptopp/aes.h:4: > In file included from cryptopp/rijndael.h:7: > In file included from cryptopp/seckey.h:9: > cryptopp/misc.h:548:20: warning: unused function 'StringNarrow' > [-Wunused-function] > static std::string StringNarrow(const wchar_t *str, bool throwOnError = > true) > ^ > > It looks like this function is only used by the source file 'files.cpp' - > should it be moved there? > If anyone outside the library is using it, then it becomes a breaking change :(
I usually use -Wno-unused-function when compiling the library. But that can cause problem in non-library programs. Since latest versions of most compilers are pragma-aware, maybe the best course is to sneak in a pragma for that header. Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
