]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Strict prototyping
[xonotic/gmqcc.git] / Makefile
index a1c08f9b5e75752a3c8ad944044e82bb4a6b0a9f..2e5c1eea8323b4cac1b55e9933f8d22014c7baa6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,12 +29,13 @@ ifeq ($(CC), clang)
            -Wno-conversion                    \
            -Wno-missing-prototypes            \
            -Wno-float-equal                   \
            -Wno-conversion                    \
            -Wno-missing-prototypes            \
            -Wno-float-equal                   \
-           -Wno-unknown-warning-option
+           -Wno-unknown-warning-option        \
+           -Wstrict-prototypes
 else
        #Tiny C Compiler doesn't know what -pedantic-errors is
        # and instead of ignoring .. just errors.
        ifneq ($(CC), tcc)
 else
        #Tiny C Compiler doesn't know what -pedantic-errors is
        # and instead of ignoring .. just errors.
        ifneq ($(CC), tcc)
-               CFLAGS += -pedantic-errors
+               CFLAGS += -Wstrict-prototypes -pedantic-errors
        else
                CFLAGS += -Wno-pointer-sign -fno-common
        endif
        else
                CFLAGS += -Wno-pointer-sign -fno-common
        endif