Commit 6fb31afe authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #588 from DonLakeFlyer/WarningsOffDefault

Warnings as Errors off by  default
parents 6c1958c8 8002815e
......@@ -130,34 +130,16 @@ WindowsBuild {
}
#
# We treat all warnings as errors which must be fixed before pull requests are approved. If you run into a problem
# you can't fix you can always use local pragmas to work around the warning. This should be used sparingly and only
# in cases where the problem absolultey can't be fixed.
# By default warnings as errors are turned off. Even so, in order for a pull request
# to be accepted you must compile cleanly with warnings as errors turned on the default
# set of OS builds. See http://www.qgroundcontrol.org/dev/contribute for more details.
# You can use the WarningsAsErrorsOn CONFIG switch to turn warnings as errors on for your
# own builds.
#
# If you run into problems in code which is not yours, please lend a hand and fix the issues. If you don't have time
# for that post an Issue with your OS and compiler information as well as the pertinent output from the build log. If it's
# a problem that will take longer to fix, we will temporarily turn off warnings as errors for that specific config until
# the Issue is taken care of. Once that is completed we will turn warnings as errors back in for the config. You can use
# CONFIG+=WarningsAsErrorsOff in your private builds for a quick local override.
#
# Please report any problems you run into with warnings as errors so we can gather information on its effectiveness as well
# as its annoyance level.
#
# Note: -Werror is currently not turned on for Linux due to unfixed problems with release builds. See Issue 535. This will
# be removed once the Issue is taken care of.
# Note: -Werror is also not turned on for Mac because Qt Core throws unused variable warnings for Mac from multiple header files.
MacBuild | LinuxBuild {
CONFIG += WarningsAsErrorsOff
}
MacBuild | LinuxBuild {
QMAKE_CXXFLAGS_WARN_ON += -Wall
}
MacBuild | LinuxBuild {
!WarningsAsErrorsOff {
WarningsAsErrorsOn {
QMAKE_CXXFLAGS_WARN_ON += -Werror
}
}
......@@ -166,10 +148,9 @@ WindowsBuild {
QMAKE_CXXFLAGS_WARN_ON += /W3 \
/wd4996 \ # silence warnings about deprecated strcpy and whatnot
/wd4290 # ignore exception specifications
}
WindowsBuild : !WarningsAsErrorsOff {
QMAKE_CXXFLAGS_WARN_ON += /WX
WarningsAsErrorsOn {
QMAKE_CXXFLAGS_WARN_ON += /WX
}
}
#
......
......@@ -12,7 +12,10 @@
#include <QtCore/qmath.h>
//#include <cmath>
#if 0
// Left in but ifdef'ed out since there is commented out code below that uses it
static const float SEPARATE_COMPASS_ASPECTRATIO = 3.0f/4.0f;
#endif
static const float LINEWIDTH = 0.0036f;
static const float SMALL_TEXT_SIZE = 0.028f;
static const float MEDIUM_TEXT_SIZE = SMALL_TEXT_SIZE*1.2f;
......@@ -49,10 +52,7 @@ static const int PITCH_SCALE_HALFRANGE = 15;
static const int COMPASS_DISK_MAJORTICK = 10;
static const int COMPASS_DISK_ARROWTICK = 45;
static const float COMPASS_DISK_MAJORLINEWIDTH = 0.006f;
static const float COMPASS_DISK_MINORLINEWIDTH = 0.004f;
static const int COMPASS_DISK_RESOLUTION = 10;
static const float COMPASS_SEPARATE_DISK_RESOLUTION = 5.0f;
static const float COMPASS_DISK_MARKERWIDTH = 0.2f;
static const float COMPASS_DISK_MARKERHEIGHT = 0.133f;
......@@ -69,15 +69,6 @@ static const int ALTIMETER_LINEAR_RESOLUTION = 5;
// every 10 meters there is a number
static const int ALTIMETER_LINEAR_MAJOR_RESOLUTION = 10;
// Projected: An experiment. Make tape appear projected from a cylinder, like a French "drum" style gauge.
// The altitude difference between top and bottom of scale
static const int ALTIMETER_PROJECTED_SPAN = 50;
// every 5 meters there is a tick mark
static const int ALTIMETER_PROJECTED_RESOLUTION = 5;
// every 10 meters there is a number
static const int ALTIMETER_PROJECTED_MAJOR_RESOLUTION = 10;
// min. and max. vertical velocity
// min. and max. vertical velocity
static const int ALTIMETER_VVI_SPAN = 5;
static const float ALTIMETER_VVI_WIDTH = 0.2f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment