MPI: suppress mpich2 unused parameter warnings

pull/1/head
Thorsten Liebig 2011-03-08 14:44:19 +01:00
parent f630abf813
commit 0735f97eac
1 changed files with 11 additions and 9 deletions

View File

@ -153,6 +153,13 @@ HEADERS += Common/operator_base.h \
Common/processfieldprobe.h \ Common/processfieldprobe.h \
Common/processfields_sar.h Common/processfields_sar.h
QMAKE_CXXFLAGS_RELEASE = -O3 \
-g \
-march=native
QMAKE_CXXFLAGS_DEBUG = -O0 \
-g \
-march=native
MPI_SUPPORT { MPI_SUPPORT {
DEFINES += MPI_SUPPORT DEFINES += MPI_SUPPORT
INCLUDEPATH += /usr/include/mpi INCLUDEPATH += /usr/include/mpi
@ -163,14 +170,9 @@ MPI_SUPPORT {
SOURCES += FDTD/operator_mpi.cpp \ SOURCES += FDTD/operator_mpi.cpp \
FDTD/engine_mpi.cpp \ FDTD/engine_mpi.cpp \
FDTD/openems_fdtd_mpi.cpp FDTD/openems_fdtd_mpi.cpp
}
QMAKE_CXXFLAGS_RELEASE = -O3 \ QMAKE_CXXFLAGS_RELEASE += -Wno-unused-parameter #needed because mpich2 produces tons of unused parameter
-g \ }
-march=native
QMAKE_CXXFLAGS_DEBUG = -O0 \
-g \
-march=native
# add git revision # add git revision
QMAKE_CXXFLAGS += -DGIT_VERSION=\\\"`git describe --tags`\\\" QMAKE_CXXFLAGS += -DGIT_VERSION=\\\"`git describe --tags`\\\"