diff --git a/sc2/build/unix/config_functions b/sc2/build/unix/config_functions index 38642dc45..4419f7e38 100644 --- a/sc2/build/unix/config_functions +++ b/sc2/build/unix/config_functions @@ -493,9 +493,7 @@ have_library() { TEMP_LDFLAGS=`evalVar LIB_${LIB}_LDFLAGS` try_compile_c "$CFLAGS $TEMP_CFLAGS" "$LDFLAGS $TEMP_LDFLAGS" << EOF -int main(int argc, char *argv[]) { - (void) argc; /* Get rid of unused variable warning */ - (void) argv; /* Get rid of unused variable warning */ +int main(void) { return 0; } EOF @@ -712,7 +710,7 @@ have_header() { try_compile_c "$CFLAGS $TEMP_CFLAGS" "$LDFLAGS $TEMP_LDFLAGS" << EOF > /dev/null 2>&1 $EXTRA #include <$HEADER> -int main() { +int main(void) { return 0; } EOF @@ -765,7 +763,7 @@ $EXTRA #ifndef $MACRO # error #endif -int main() { +int main(void) { return 0; } EOF @@ -833,7 +831,7 @@ check_endianness() { else # Detect endianness try_compile_and_run_c "$CFLAGS" "$LDFLAGS" << EOF -int main() { +int main(void) { int i; i = 1;