1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

bignum: Use UNUSED macros

This commit is contained in:
Andreas Schneider
2018-11-30 17:49:29 +01:00
parent 109a203453
commit c0ae59e102
2 changed files with 22 additions and 20 deletions

View File

@ -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;
}
int main(void)
{
int i;
i = do_nothing(5);
if (i > 5) {
return 1;
static int do_nothing(int i __unused)
{
return 0;
}
return 0;
}" HAVE_UNUSED_ATTRIBUTE)
int main(void)
{
int i;
i = do_nothing(5);
if (i > 5) {
return 1;
}
return 0;
}" HAVE_UNUSED_ATTRIBUTE)
endif()
check_c_source_compiles("
#include <string.h>