From 64c5dd254a1ad0ef55548bda608f5562989bd07b Mon Sep 17 00:00:00 2001 From: Andreas Lauser <and@poware.org> Date: Fri, 28 Jan 2011 10:47:09 +0000 Subject: [PATCH] options: make GCC shut up on changed ordering of bitfields in 4.4 git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5128 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- debug.opts | 2 +- dumux/common/boundarytypes.hh | 2 +- optim.opts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debug.opts b/debug.opts index 282e35f5a6..196c30d446 100644 --- a/debug.opts +++ b/debug.opts @@ -2,7 +2,7 @@ DUMUXDIR=$(find $OLDPWD -name "dune.module" | xargs grep -El '[[:space:]]*Module:[[:space:]]*dumux[[:space:]]*$' | sed "s/dune.module//") # configure flags -CONFIGURE_FLAGS="CXXFLAGS=\"-I$DUMUXDIR -Wall -Wno-sign-compare -fno-strict-aliasing -g\" \ +CONFIGURE_FLAGS="CXXFLAGS=\"-I$DUMUXDIR -Wall -Wno-sign-compare -Wno-packed-bitfield-compat -fno-strict-aliasing -g\" \ --enable-dunedevel \ --enable-documentation \ --disable-parallel \ diff --git a/dumux/common/boundarytypes.hh b/dumux/common/boundarytypes.hh index 89a83811d5..4ca044a7f2 100644 --- a/dumux/common/boundarytypes.hh +++ b/dumux/common/boundarytypes.hh @@ -414,7 +414,7 @@ public: private: // this is a bitfield structure! - struct __packed__ { + struct __attribute__((__packed__)) { unsigned char visited : 1; unsigned char isDirichlet : 1; unsigned char isNeumann : 1; diff --git a/optim.opts b/optim.opts index bbed24f922..1baefc916e 100644 --- a/optim.opts +++ b/optim.opts @@ -2,7 +2,7 @@ DUMUXDIR=$(find $OLDPWD -name "dune.module" | xargs grep -El '[[:space:]]*Module:[[:space:]]*dumux[[:space:]]*$' | sed "s/dune.module//") # configure flags -CONFIGURE_FLAGS="CXXFLAGS=\"-I$DUMUXDIR -Wall -Wno-sign-compare -fno-strict-aliasing -O3 -march=native -DNDEBUG\" \ +CONFIGURE_FLAGS="CXXFLAGS=\"-I$DUMUXDIR -Wall -Wno-sign-compare -Wno-packed-bitfield-compat -fno-strict-aliasing -O3 -march=native -DNDEBUG\" \ --disable-dunedevel \ --disable-documentation \ --disable-parallel \ -- GitLab