1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-10 Turn on stricter warnings on OS X

This commit is contained in:
Stefan Karlsson 2015-07-12 17:34:45 +02:00
parent dc08ca5949
commit de07c028a9
5 changed files with 24 additions and 3 deletions

View File

@ -233,3 +233,13 @@ win32 {
# The ((packet)) pragma is used in uav metadata struct and other places
QMAKE_CXXFLAGS += -mno-ms-bitfields
}
# Stricter warnigs turned on for OS X.
macx {
CONFIG += warn_on
!warn_off {
QMAKE_CXXFLAGS_WARN_ON += -Werror
QMAKE_CFLAGS_WARN_ON += -Werror
QMAKE_CXXFLAGS_WARN_ON += -Wno-gnu-static-float-init
}
}

View File

@ -8,3 +8,10 @@ UI_DIR = uics
MOC_DIR = mocs
OBJECTS_DIR = objs
INCLUDEPATH +=../../../../libs/
# Stricter warnings turned on for OS X.
macx {
CONFIG += warn_on
QMAKE_CXXFLAGS_WARN_ON += -Werror
QMAKE_CFLAGS_WARN_ON += -Werror
}

View File

@ -17,9 +17,6 @@ include( qwtconfig.pri )
TEMPLATE = subdirs
CONFIG += ordered
# disable all warnings (no need for warnings as qwt sources are imported)
CONFIG += warn_off
SUBDIRS = \
src \
# textengines \

View File

@ -35,6 +35,9 @@ DEFINES += QWT_LIBRARY
#
include(../../../openpilotgcslibrary.pri)
# disable all warnings (no need for warnings as qwt sources are imported)
CONFIG += warn_off
contains(QWT_CONFIG, QwtDll) {
CONFIG += dll

View File

@ -46,6 +46,10 @@ macx {
hidapi/mac/hid.c
LIBS += -framework CoreFoundation -framework IOKit
# hid.c has too many warnings about unused paramters.
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter
}
linux {