diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 16:14:31 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 16:14:31 +0000 |
commit | 972d905d7f18dc10f9f4e27bb244d6f778f57901 (patch) | |
tree | f8626940c51d22e534d9ec3d1772a1084bd0c383 /solenv/inc/unxlngi4.mk | |
parent | 4e489eec0c8f85aeb454d654fea6d80874c71e73 (diff) |
INTEGRATION: CWS warnings01 (1.34.56); FILE MERGED
2006/05/23 19:01:03 sb 1.34.56.7: RESYNC: (1.38-1.39); FILE MERGED
2006/04/07 18:31:55 sb 1.34.56.6: RESYNC: (1.37-1.38); FILE MERGED
2006/01/25 19:04:21 sb 1.34.56.5: RESYNC: (1.36-1.37); FILE MERGED
2005/11/09 10:34:29 sb 1.34.56.4: #i53898# CFLAGSWARN...: cleaned up and incorporated changes already made for unxlngi6.mk.
2005/11/07 17:19:27 pl 1.34.56.3: RESYNC: (1.35-1.36); FILE MERGED
2005/09/22 23:26:49 sb 1.34.56.2: RESYNC: (1.34-1.35); FILE MERGED
2005/08/29 11:48:50 sb 1.34.56.1: #i53898# Changed and extended CFLAGSDFTLWARN/CFLAGSWALL to CFLAGS{WARN|WALL|WERR}{CC|CXX}.
Diffstat (limited to 'solenv/inc/unxlngi4.mk')
-rw-r--r-- | solenv/inc/unxlngi4.mk | 21 |
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 |