From 31fdfaa0708f53f4d7b4d5c7ebe5f662f5f54884 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 30 Jan 2019 23:06:06 -0500 Subject: [PATCH] Clear unused function warning in Donna source files (GH #793) --- donna_32.cpp | 4 ++++ donna_64.cpp | 4 ++++ donna_sse.cpp | 1 + 3 files changed, 9 insertions(+) diff --git a/donna_32.cpp b/donna_32.cpp index 9fe5d22b..98beb9bc 100644 --- a/donna_32.cpp +++ b/donna_32.cpp @@ -27,6 +27,10 @@ #include "misc.h" #include "cpu.h" +#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE +# pragma GCC diagnostic ignored "-Wunused-function" +#endif + // Squash MS LNK4221 and libtool warnings extern const char DONNA32_FNAME[] = __FILE__; diff --git a/donna_64.cpp b/donna_64.cpp index d54d492f..b08d1700 100644 --- a/donna_64.cpp +++ b/donna_64.cpp @@ -27,6 +27,10 @@ #include "misc.h" #include "cpu.h" +#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE +# pragma GCC diagnostic ignored "-Wunused-function" +#endif + // Squash MS LNK4221 and libtool warnings extern const char DONNA64_FNAME[] = __FILE__; diff --git a/donna_sse.cpp b/donna_sse.cpp index 99607b6d..410afbc4 100644 --- a/donna_sse.cpp +++ b/donna_sse.cpp @@ -24,6 +24,7 @@ // and not the actual alignment of the variable and data. #if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE # pragma GCC diagnostic ignored "-Wcast-align" +# pragma GCC diagnostic ignored "-Wunused-function" #endif // Squash MS LNK4221 and libtool warnings