summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
Diffstat (limited to 'solenv')
-rw-r--r--solenv/inc/unxlngi4.mk21
1 files changed, 13 insertions, 8 deletions
diff --git a/solenv/inc/unxlngi4.mk b/solenv/inc/unxlngi4.mk
index 3a812c957967..696161ac64d3 100644
--- a/solenv/inc/unxlngi4.mk
+++ b/solenv/inc/unxlngi4.mk
@@ -4,9 +4,9 @@
#
# $RCSfile: unxlngi4.mk,v $
#
-# $Revision: 1.39 $
+# $Revision: 1.40 $
#
-# last change: $Author: hr $ $Date: 2006-04-20 13:32:27 $
+# last change: $Author: hr $ $Date: 2006-06-19 17:14:31 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -70,7 +70,7 @@ CXX*=g++
# name of C Compiler
CC*=gcc
# flags for C and C++ Compiler
-CFLAGS+=-Wuninitialized -fmessage-length=0 -c $(INCLUDE)
+CFLAGS+=-fmessage-length=0 -c $(INCLUDE)
# flags to enable build with symbols; required for crashdump feature
.IF "$(ENABLE_SYMBOLS)"=="SMALL"
@@ -87,7 +87,6 @@ CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
CFLAGSCXX= -pipe $(ARCH_FLAGS)
-CFLAGSCXX+= -Wno-ctor-dtor-privacy
# HACK: enable Hamburg developers to build on glibc-2.2 machines but compile vs. glibc-2.1 headers
.IF "$(BUILD_SPECIAL)"==""
@@ -120,10 +119,16 @@ CFLAGSOPT=-O1
CFLAGSNOOPT=-O0
# Compiler flags for describing the output path
CFLAGSOUTOBJ=-o
-# Enable all warnings
-CFLAGSWALL=-Wall -Wfloat-equal -Weffc++ -Wold-style-cast -Woverloaded-virtual -Wshadow -Wpointer-arith -Wcast-align -Wsign-compare -Winline
-# Set default warn level
-CFLAGSDFLTWARN=
+
+CFLAGSWARNCC=
+.IF "$(PRODUCT)"!=""
+CFLAGSWARNCC+=-Wuninitialized # not supported without optimization
+.ENDIF
+CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy
+# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
+CFLAGSWALLCC=-Wall -Wextra -Wendif-labels
+CFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy
+CFLAGSWERRCC=-Werror
# switches for dynamic and static linking
STATIC = -Wl,-Bstatic