summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-28 13:11:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-28 13:11:00 +0000
commit8cb29230388c679371183838fa7d82377a9eb493 (patch)
tree3c3c4df091b0001f36b089bad26c5a2b7daca94b /configs
parentca33e211659b36449a5b91e47328ab5554a4c665 (diff)
don't use -Wmissing-prototypes for C++ code
Diffstat (limited to 'configs')
-rw-r--r--configs/linux7
-rw-r--r--configs/linux-dri7
2 files changed, 6 insertions, 8 deletions
diff --git a/configs/linux b/configs/linux
index 0ffc1bcb57..2526bb7ebc 100644
--- a/configs/linux
+++ b/configs/linux
@@ -8,7 +8,6 @@ CONFIG_NAME = linux
CC = gcc
CXX = g++
-WARN_FLAGS = -Wall -Wmissing-prototypes
OPT_FLAGS = -O3 -g
PIC_FLAGS = -fPIC
@@ -22,10 +21,10 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
X11_INCLUDES = -I/usr/X11R6/include
-CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
- $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
+CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
+ $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
-CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
+CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
$(X11_INCLUDES)
GLUT_CFLAGS = -fexceptions
diff --git a/configs/linux-dri b/configs/linux-dri
index 108b3f1224..a28c770861 100644
--- a/configs/linux-dri
+++ b/configs/linux-dri
@@ -13,7 +13,6 @@ MKDEP = /usr/X11R6/bin/makedepend
#MKDEP = gcc -M
#MKDEP_OPTIONS = -MF depend
-WARN_FLAGS = -Wall -Wmissing-prototypes
OPT_FLAGS = -g
PIC_FLAGS = -fPIC
@@ -27,10 +26,10 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
X11_INCLUDES = -I/usr/X11R6/include
-CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
- $(ASM_FLAGS) -std=c99 -ffast-math
+CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
+ $(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
-CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
+CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
ASM_SOURCES =