mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-10 Turn on stricter warnings on OS X
This commit is contained in:
parent
dc08ca5949
commit
de07c028a9
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user