mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Improve signing script, adjust flags for gcc-4.2
On one of my machines codesign doesn't find my signing key by hash, but does find it by name. Go figure. Also on that same system (32bit Mac Mini with running Snow Leopard / 10.6) gcc 4.2 doesn't support the -unused-result warning. So let's only turn that on for more modern versions of gcc Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a351bbde24
commit
a0b9daf63b
2 changed files with 24 additions and 17 deletions
|
@ -10,7 +10,16 @@
|
|||
# these warnings are in general just wrong and annoying - but should be
|
||||
# turned on every once in a while in case they do show the occasional
|
||||
# actual bug
|
||||
*-g++* | *-clang*: QMAKE_CFLAGS += -Wno-unused-result -Wno-pointer-sign -fno-strict-overflow
|
||||
# turns out the gcc 4.2 (as used on MacOS 10.6) doesn't have no-unused-result, yet
|
||||
*-clang*: QMAKE_CFLAGS += -Wno-unused-result -Wno-pointer-sign -fno-strict-overflow
|
||||
*-g++*: {
|
||||
system( g++ --version | grep -e "4\\.2\\." > /dev/null ) {
|
||||
QMAKE_CFLAGS += -Wno-pointer-sign -fno-strict-overflow
|
||||
} else {
|
||||
QMAKE_CFLAGS += -Wno-unused-result -Wno-pointer-sign -fno-strict-overflow
|
||||
}
|
||||
}
|
||||
|
||||
*-clang*: QMAKE_CFLAGS += -Wno-format-security
|
||||
*-g++*: QMAKE_CXXFLAGS += -fno-strict-overflow
|
||||
!win32: !mac: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue