Fixed the main() argument types for test prog.

Fixed typo.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@969 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-05-21 10:03:57 +00:00
parent 8b82f9ff64
commit 3545df4287
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ CHOICE_debug_OPTION_strictdebug_TITLE="Debug info + strict compile checks"
CHOICE_debug_OPTION_strictdebug_ACTION='strictdebug_action' CHOICE_debug_OPTION_strictdebug_ACTION='strictdebug_action'
strictdebug_action() { strictdebug_action() {
CFLAGS="$CFLAGS -O1" # This is needed for -Wunitialized 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 \ CFLAGS="$CFLAGS -W -Wall \
-Wbad-function-cast -Wcast-qual -Wmissing-prototypes \ -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
-Wstrict-prototypes -Wmissing-declarations \ -Wstrict-prototypes -Wmissing-declarations \
+3 -1
View File
@@ -170,7 +170,9 @@ have_library() {
eval eval TEMP_CFLAGS="\\\"\$LIB_${LIB}_CFLAGS\\\"" eval eval TEMP_CFLAGS="\\\"\$LIB_${LIB}_CFLAGS\\\""
try_compile_c "$TEMP_CFLAGS" "$TEMP_LDFLAGS" << EOF 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; return 0;
} }
EOF EOF