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:
@@ -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 \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user