> C:\cryptopp\misc.h|58|warning: unused variable 'cryptopp_assert_26'
> [-Wunused-variable]|
> C:\cryptopp\misc.h|61|note: in definition of macro
> 'CRYPTOPP_DO_ASSERT_JOIN'|
> C:\cryptopp\misc.h|58|note: in expansion of macro 'CRYPTOPP_ASSERT_JOIN'|
> C:\cryptopp\misc.h|54|note: in expansion of macro
> 'CRYPTOPP_COMPILE_ASSERT_INSTANCE'|
> C:\cryptopp\algparam.h|26|note: in expansion of macro
> 'CRYPTOPP_COMPILE_ASSERT'|

CRYPTOPP_ASSERT is different than CRYPTOPP_COMPILE_ASSERT. But yeah,
give me a minute to fire up MinGW's VM and see what can be done.

What warnings are you using? Is this at -Wall and higher?

Note that you might be hitting this GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431. There's nothing we
can do about that. From comment 13
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431#c13):

    This issued caused Crypto++ to remove -Wall (and above)
    under GCC. Crypto++ is C++ with lots of interfaces, and it
    performs a fair amount of intermediate calculations used in
    an assert. It really needed the following to work as expected:

    // GCC diagnostcs available after GCC 4.2
(https://gcc.gnu.org/ml/gcc-help/2015-07/msg00063.html)
    #define GCC_DIAGNOSTIC_AWARE ((__GNUC__ > 4 || (__GNUC__ == 4 &&
__GNUC_MINOR__ >= 2)) || defined(__clang__))

    #if GCC_DIAGNOSTIC_AWARE
    # pragma GCC diagnostic push
    # pragma GCC diagnostic ignored "-Wunused-value"
    # pragma GCC diagnostic ignored "-Wunused-variable"
    #endif

I offered to pay one of the GCC devs a bounty to fix it. No takers yet.

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.

Reply via email to