summaryrefslogtreecommitdiff
path: root/solenv/inc/unxsols4.mk
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:17:40 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:17:40 +0000
commit64871c499676947916cdaef07e3a3672387f7216 (patch)
tree5904f6a15f323ad17c7a34d5c376d68e9c1929da /solenv/inc/unxsols4.mk
parent7fec08a26c22247471d0e5645917d02f504c5be4 (diff)
INTEGRATION: CWS warnings01 (1.19.56); FILE MERGED
2006/04/20 13:58:28 sb 1.19.56.7: #i53898# Temporarily introduced MODULES_WITH_WARNINGS, until all modules are warning-free. 2006/01/25 19:06:09 sb 1.19.56.6: RESYNC: (1.21-1.23); FILE MERGED 2005/10/28 09:33:52 sb 1.19.56.5: #i53898# Switched off reftotemp warning; added comments about switched off warnings. 2005/10/19 16:00:57 sb 1.19.56.4: #i53898# Switch on the effects of wall=1 per default on certain platforms. 2005/09/22 23:30:11 sb 1.19.56.3: RESYNC: (1.19-1.21); FILE MERGED 2005/08/31 09:41:29 sb 1.19.56.2: #i53898# Contrary to previous belief, cc *does* generate warnings (about unreachable code, for example). Globally disabled doubunder for CC. 2005/08/29 11:48:53 sb 1.19.56.1: #i53898# Changed and extended CFLAGSDFTLWARN/CFLAGSWALL to CFLAGS{WARN|WALL|WERR}{CC|CXX}.
Diffstat (limited to 'solenv/inc/unxsols4.mk')
-rw-r--r--solenv/inc/unxsols4.mk58
1 files changed, 52 insertions, 6 deletions
diff --git a/solenv/inc/unxsols4.mk b/solenv/inc/unxsols4.mk
index 71ee28043e86..f58fc5b184c8 100644
--- a/solenv/inc/unxsols4.mk
+++ b/solenv/inc/unxsols4.mk
@@ -4,9 +4,9 @@
#
# $RCSfile: unxsols4.mk,v $
#
-# $Revision: 1.23 $
+# $Revision: 1.24 $
#
-# last change: $Author: rt $ $Date: 2006-01-13 16:19:24 $
+# last change: $Author: hr $ $Date: 2006-06-19 17:17:40 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -88,10 +88,56 @@ CFLAGSOPT=-xarch=v8plus -xO3 -xspace -xprefetch=yes
CFLAGSNOOPT=
CFLAGSOUTOBJ=-o
-# Enable all warnings
-CFLAGSWALL=+w2
-# Set default warn level
-CFLAGSDFLTWARN=
+# Warnings switched off for CXX:
+# - doubunder: we have many identifiers containing double underscores, some of
+# them in the stable UDK API we cannot change
+# - inllargeuse: "function is too large and will not be expanded inline" is
+# merely a hint
+# - notemsource: "could not find source for function" appears to be spurious
+# - reftotemp: warns about calling non-const functions on temporary objects,
+# something legally done by boost::scoped_array<T>::reset, for example
+# (this_type(p).swap(*this))
+CFLAGSWARNCC=
+CFLAGSWARNCXX=+w2 -erroff=doubunder,inllargeuse,notemsource,reftotemp
+CFLAGSWALLCC=$(CFLAGSWARNCC)
+CFLAGSWALLCXX=$(CFLAGSWARNCXX)
+CFLAGSWERRCC=-errwarn=%all
+CFLAGSWERRCXX=-xwe
+
+# Once all modules on this platform compile without warnings, set
+# COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see
+# settings.mk):
+MODULES_WITH_WARNINGS := \
+ b_server \
+ basctl \
+ binfilter \
+ canvas \
+ chart2 \
+ cppcanvas \
+ desktop \
+ devtools \
+ dxcanvas \
+ extensions \
+ filter \
+ finalize \
+ glcanvas \
+ instset_native \
+ instsetoo_native \
+ lingu \
+ postprocess \
+ r_tools \
+ sc \
+ sch \
+ sd \
+ slideshow \
+ smoketest_native \
+ smoketestoo_native \
+ starmath \
+ svx \
+ sw \
+ top \
+ writerperfect \
+ xmlsecurity
STDOBJVCL=$(L)$/salmain.o