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:
parent
dc08ca5949
commit
de07c028a9
@ -233,3 +233,13 @@ win32 {
|
|||||||
# The ((packet)) pragma is used in uav metadata struct and other places
|
# The ((packet)) pragma is used in uav metadata struct and other places
|
||||||
QMAKE_CXXFLAGS += -mno-ms-bitfields
|
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
|
MOC_DIR = mocs
|
||||||
OBJECTS_DIR = objs
|
OBJECTS_DIR = objs
|
||||||
INCLUDEPATH +=../../../../libs/
|
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
|
TEMPLATE = subdirs
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
|
|
||||||
# disable all warnings (no need for warnings as qwt sources are imported)
|
|
||||||
CONFIG += warn_off
|
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
src \
|
src \
|
||||||
# textengines \
|
# textengines \
|
||||||
|
@ -35,6 +35,9 @@ DEFINES += QWT_LIBRARY
|
|||||||
#
|
#
|
||||||
include(../../../openpilotgcslibrary.pri)
|
include(../../../openpilotgcslibrary.pri)
|
||||||
|
|
||||||
|
# disable all warnings (no need for warnings as qwt sources are imported)
|
||||||
|
CONFIG += warn_off
|
||||||
|
|
||||||
contains(QWT_CONFIG, QwtDll) {
|
contains(QWT_CONFIG, QwtDll) {
|
||||||
|
|
||||||
CONFIG += dll
|
CONFIG += dll
|
||||||
|
@ -46,6 +46,10 @@ macx {
|
|||||||
hidapi/mac/hid.c
|
hidapi/mac/hid.c
|
||||||
|
|
||||||
LIBS += -framework CoreFoundation -framework IOKit
|
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 {
|
linux {
|
||||||
|
Loading…
Reference in New Issue
Block a user