diff options
author | Jack Lloyd <[email protected]> | 2016-11-09 14:16:48 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-09 14:16:48 -0500 |
commit | 719a5e3f319e423467a614ce1625a5ec43a82383 (patch) | |
tree | ff4a581c6f81f82ec558fbc96991f31aec041b9c /src/build-data/buildh.in | |
parent | 35f3a9a210673a226be5cdab67e771b7a87b7c68 (diff) |
Add BOTAN_WARN_UNUSED_RESULT macro
Only works for GCC and Clang
Diffstat (limited to 'src/build-data/buildh.in')
-rw-r--r-- | src/build-data/buildh.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index fea18fd90..56b70e060 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -201,6 +201,12 @@ Each read generates 32 bits of output #define BOTAN_FUNC_ISA(isa) #endif +#if defined(__GNUG__) || defined(__clang__) + #define BOTAN_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result)) +#else + #define BOTAN_WARN_UNUSED_RESULT +#endif + /* * Compile-time deprecation warnings */ |