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
3e937e05
Commit
3e937e05
authored
Feb 15, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #513 from DonLakeFlyer/ThirdPartyWarnings
Third party warnings
parents
de3aaa03
a94d575e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
6 deletions
+77
-6
QGCSetup.pri
QGCSetup.pri
+4
-1
lks94projection.cpp
...pmapcontrol/src/internals/projections/lks94projection.cpp
+10
-0
mercatorprojectionyandex.cpp
...ol/src/internals/projections/mercatorprojectionyandex.cpp
+15
-0
qwt_plot_spectrogram.cpp
libs/qwt/qwt_plot_spectrogram.cpp
+13
-0
qwt_plot_zoomer.h
libs/qwt/qwt_plot_zoomer.h
+11
-0
qserialport.pri
libs/serialport/qserialport.pri
+1
-1
qgroundcontrol.pro
qgroundcontrol.pro
+10
-3
qupgrade
qupgrade
+1
-1
Q3DWidget.h
src/ui/map3D/Q3DWidget.h
+12
-0
No files found.
QGCSetup.pri
View file @
3e937e05
...
...
@@ -186,10 +186,13 @@ WindowsBuild {
ReleaseBuild {
QMAKE_POST_LINK += $$escape_expand(\\n) $$quote(del /F "$$DESTDIR_WIN\\$${TARGET}.exp")
# This next xcopy does not always work because the files are not there by default, so disabling for now while
# we figure out the right way to do it
# Copy Visual Studio DLLs
# Note that this is only done for release because the debugging versions of these DLLs cannot be redistributed.
# I'm not certain of the path for VS2008, so this only works for VS2010.
win32-msvc2010 {
win32-msvc2010
_NotWorkingButKeepingIn
{
QMAKE_POST_LINK += $$escape_expand(\\n) $$quote(xcopy /D /Y "\"C:\\Program Files \(x86\)\\Microsoft Visual Studio 10.0\\VC\\redist\\x86\\Microsoft.VC100.CRT\\*.dll\"" "$$DESTDIR_WIN\\")
}
}
...
...
libs/opmapcontrol/src/internals/projections/lks94projection.cpp
View file @
3e937e05
...
...
@@ -28,6 +28,11 @@
#include <qmath.h>
// These pragmas are local modifications to this third party library to silence warnings
#ifdef Q_OS_LINUX
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
namespace
projections
{
LKS94Projection
::
LKS94Projection
()
:
MinLatitude
(
53.33
),
MaxLatitude
(
56.55
),
MinLongitude
(
20.22
),
...
...
@@ -787,3 +792,8 @@ Size LKS94Projection::GetTileMatrixMaxXY(int const& zoom)
}
}
#ifdef Q_OS_LINUX
#pragma GCC diagnostic pop
#endif
libs/opmapcontrol/src/internals/projections/mercatorprojectionyandex.cpp
View file @
3e937e05
...
...
@@ -57,6 +57,16 @@ Point MercatorProjectionYandex::FromLatLngToPixel(double lat, double lng, const
return
ret
;
}
// These pragmas are local modifications to this third party library to silence warnings
#ifdef Q_OS_LINUX
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#elif defined(Q_OS_MAC)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#endif
internals
::
PointLatLng
MercatorProjectionYandex
::
FromPixelToLatLng
(
const
int
&
x
,
const
int
&
y
,
const
int
&
zoom
)
{
Size
s
=
GetTileMatrixSizePixel
(
zoom
);
...
...
@@ -82,6 +92,11 @@ internals::PointLatLng MercatorProjectionYandex::FromPixelToLatLng(const int &x,
return
ret
;
}
#ifndef Q_OS_WIN
#pragma GCC diagnostic pop
#endif
double
MercatorProjectionYandex
::
Clip
(
const
double
&
n
,
const
double
&
minValue
,
const
double
&
maxValue
)
const
{
return
qMin
(
qMax
(
n
,
minValue
),
maxValue
);
...
...
libs/qwt/qwt_plot_spectrogram.cpp
View file @
3e937e05
...
...
@@ -533,6 +533,15 @@ QwtRasterData::ContourLines QwtPlotSpectrogram::renderContourLines(
d_data
->
contourLevels
,
d_data
->
conrecAttributes
);
}
// These pragmas are local modifications to this third party library to silence warnings
#ifdef Q_OS_LINUX
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#elif defined(Q_OS_MAC)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#endif
/*!
Paint the contour lines
...
...
@@ -578,6 +587,10 @@ void QwtPlotSpectrogram::drawContourLines(QPainter *painter,
}
}
#ifndef Q_OS_WIN
#pragma GCC diagnostic pop
#endif
/*!
\brief Draw the spectrogram
...
...
libs/qwt/qwt_plot_zoomer.h
View file @
3e937e05
...
...
@@ -85,8 +85,19 @@ public:
public
slots
:
void
moveBy
(
double
x
,
double
y
);
// These pragmas are local modifications to this third party library to silence warnings
#ifndef Q_OS_WIN
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
virtual
void
move
(
double
x
,
double
y
);
#ifndef Q_OS_WIN
#pragma GCC diagnostic pop
#endif
virtual
void
zoom
(
const
QwtDoubleRect
&
);
virtual
void
zoom
(
int
up
);
...
...
libs/serialport/qserialport.pri
View file @
3e937e05
...
...
@@ -55,4 +55,4 @@ unix:!symbian {
}
}
HEADERS
+
= $$PUBLIC_HEADERS $$PRIVATE_HEADERS
HEADERS
*
= $$PUBLIC_HEADERS $$PRIVATE_HEADERS
qgroundcontrol.pro
View file @
3e937e05
...
...
@@ -117,16 +117,23 @@ WindowsBuild {
}
#
#
Warnings
cleanup
.
Plan
of
attack
is
to
turn
on
warnings
as
error
once
all
warnings
are
fixed
.
Please
#
do
no
change
the
warning
level
from
what
they
are
currently
set
to
below
.
#
We
treat
all
warnings
as
errors
which
must
be
fixed
before
proceeding
.
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
.
#
MacBuild
|
LinuxBuild
{
QMAKE_CXXFLAGS_WARN_ON
+=
-
Wall
}
MacBuild
{
QMAKE_CXXFLAGS_WARN_ON
+=
-
Werror
}
WindowsBuild
{
QMAKE_CXXFLAGS_WARN_ON
+=
/
W3
QMAKE_CXXFLAGS_WARN_ON
+=
/
W3
\
/
wd4996
\
#
silence
warnings
about
deprecated
strcpy
and
whatnot
/
wd4290
#
ignore
exception
specifications
}
#
...
...
qupgrade
@
2db4b382
Subproject commit
b8b885c610ee574140c7a6ad9bc007dcf28a74b7
Subproject commit
2db4b382b02c3822acd19e99bc57fa53f3f53d01
src/ui/map3D/Q3DWidget.h
View file @
3e937e05
...
...
@@ -39,8 +39,20 @@ This file is part of the QGROUNDCONTROL project
#include <osg/PositionAttitudeTransform>
#include <osgGA/TrackballManipulator>
#include <osgText/Font>
// OpenSceneGraph has overloaded virtuals defined, since third party code we silence the warnings when the
// headers are used.
#ifndef Q_OS_WIN
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
#include <osgViewer/Viewer>
#ifndef Q_OS_WIN
#pragma GCC diagnostic pop
#endif
#include "CameraParams.h"
#include "GCManipulator.h"
#include "SystemGroupNode.h"
...
...
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