diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-11-30 17:49:29 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-11-30 18:25:12 +0100 |
commit | c0ae59e1022071539cd9ce2343cf486cf69b94f2 (patch) | |
tree | 6fa5ce02274c2e112c2b0f4accb105bfed45354c /ConfigureChecks.cmake | |
parent | 109a203453e782bcaa8ac5662aac74397fa0cc1a (diff) | |
download | libssh-c0ae59e1022071539cd9ce2343cf486cf69b94f2.tar.gz libssh-c0ae59e1022071539cd9ce2343cf486cf69b94f2.tar.xz libssh-c0ae59e1022071539cd9ce2343cf486cf69b94f2.zip |
bignum: Use UNUSED macros
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index d4e9f105..7c24dfd9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -343,25 +343,27 @@ int main(void) { return 0; }" HAVE_FALLTHROUGH_ATTRIBUTE) -check_c_source_compiles(" -#define __unused __attribute__((unused)) +if (NOT WIN32) + check_c_source_compiles(" + #define __unused __attribute__((unused)) -static int do_nothing(int i __unused) -{ - return 0; -} + static int do_nothing(int i __unused) + { + return 0; + } -int main(void) -{ - int i; + int main(void) + { + int i; - i = do_nothing(5); - if (i > 5) { - return 1; - } + i = do_nothing(5); + if (i > 5) { + return 1; + } - return 0; -}" HAVE_UNUSED_ATTRIBUTE) + return 0; + }" HAVE_UNUSED_ATTRIBUTE) +endif() check_c_source_compiles(" #include <string.h> |