Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
6fb31afe
Commit
6fb31afe
authored
Mar 14, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #588 from DonLakeFlyer/WarningsOffDefault
Warnings as Errors off by default
parents
6c1958c8
8002815e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
40 deletions
+12
-40
qgroundcontrol.pro
qgroundcontrol.pro
+9
-28
PrimaryFlightDisplay.cc
src/ui/PrimaryFlightDisplay.cc
+3
-12
No files found.
qgroundcontrol.pro
View file @
6fb31afe
...
...
@@ -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
}
}
#
...
...
src/ui/PrimaryFlightDisplay.cc
View file @
6fb31afe
...
...
@@ -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.0036
f
;
static
const
float
SMALL_TEXT_SIZE
=
0.028
f
;
static
const
float
MEDIUM_TEXT_SIZE
=
SMALL_TEXT_SIZE
*
1.2
f
;
...
...
@@ -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.006
f
;
static
const
float
COMPASS_DISK_MINORLINEWIDTH
=
0.004
f
;
static
const
int
COMPASS_DISK_RESOLUTION
=
10
;
static
const
float
COMPASS_SEPARATE_DISK_RESOLUTION
=
5.0
f
;
static
const
float
COMPASS_DISK_MARKERWIDTH
=
0.2
f
;
static
const
float
COMPASS_DISK_MARKERHEIGHT
=
0.133
f
;
...
...
@@ -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.2
f
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment