diff --git a/sc2/build/unix/build.config b/sc2/build/unix/build.config index 038072984..cf368e4e3 100644 --- a/sc2/build/unix/build.config +++ b/sc2/build/unix/build.config @@ -66,7 +66,7 @@ CHOICE_debug_OPTION_strictdebug_TITLE="Debug info + strict compile checks" CHOICE_debug_OPTION_strictdebug_ACTION='strictdebug_action' strictdebug_action() { CFLAGS="$CFLAGS -O1" # This is needed for -Wunitialized - CFLAGS="$CFLAGS -DDEBUG_TRACK_SEM" # enable semaphore deugging + CFLAGS="$CFLAGS -DDEBUG_TRACK_SEM" # enable semaphore debugging CFLAGS="$CFLAGS -W -Wall \ -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \ -Wstrict-prototypes -Wmissing-declarations \ diff --git a/sc2/build/unix/config_functions b/sc2/build/unix/config_functions index ab4352cec..2e469dcb8 100644 --- a/sc2/build/unix/config_functions +++ b/sc2/build/unix/config_functions @@ -170,7 +170,9 @@ have_library() { eval eval TEMP_CFLAGS="\\\"\$LIB_${LIB}_CFLAGS\\\"" try_compile_c "$TEMP_CFLAGS" "$TEMP_LDFLAGS" << EOF -int main() { +int main(int argc, char *argv[]) { + (void) argc; /* Get rid of unused variable warning */ + (void) argv; /* Get rid of unused variable warning */ return 0; } EOF