Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
OpenSpace
Commits
10ec6d30
Commit
10ec6d30
authored
2 years ago
by
Alexander Bock
Browse files
Options
Download
Email Patches
Plain Diff
Revert pragma warnings
parent
068013be
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
apps/OpenSpace/ext/sgct
+1
-1
apps/OpenSpace/ext/sgct
ext/ghoul
+1
-1
ext/ghoul
include/openspace/json.h
+4
-0
include/openspace/json.h
include/openspace/util/spicemanager.h
+6
-1
include/openspace/util/spicemanager.h
modules/touch/include/tuioear.h
+9
-4
modules/touch/include/tuioear.h
src/util/spicemanager.cpp
+12
-2
src/util/spicemanager.cpp
support/cmake/set_openspace_compile_settings.cmake
+0
-3
support/cmake/set_openspace_compile_settings.cmake
support/coding/codegen
+1
-1
support/coding/codegen
tests/test_spicemanager.cpp
+6
-1
tests/test_spicemanager.cpp
with
40 additions
and
14 deletions
+40
-14
sgct
@
4e00462a
Compare
3d9a9cb4
...
4e00462a
Subproject commit
3d9a9cb428154398d8c2b8b1fafca600d3aff07
5
Subproject commit
4e00462a08d5a38eb71a31a2e2f9ed4c7de72c4
5
This diff is collapsed.
Click to expand it.
ghoul
@
5d45aa76
Compare
359aefa7
...
5d45aa76
Subproject commit
359aefa702be74f6bbc1535594c2b12e41a94b49
Subproject commit
5d45aa76aa3e6b2eba42638679fc5526574c97e4
This diff is collapsed.
Click to expand it.
include/openspace/json.h
+
4
-
0
View file @
10ec6d30
...
...
@@ -30,13 +30,17 @@
#pragma warning (disable : 4706) // assignment within conditional expression
#endif // WIN32
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#pragma GCC diagnostic ignored "-Wuseless-cast"
#endif // __GNUC__
#include
<json/json.hpp>
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif // __GNUC__
#ifdef WIN32
#pragma warning (pop)
...
...
This diff is collapsed.
Click to expand it.
include/openspace/util/spicemanager.h
+
6
-
1
View file @
10ec6d30
...
...
@@ -36,17 +36,22 @@
#include
<vector>
#include
<set>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
#include
"SpiceUsr.h"
#include
"SpiceZpr.h"
#ifdef __clang__
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
namespace
openspace
{
...
...
This diff is collapsed.
Click to expand it.
modules/touch/include/tuioear.h
+
9
-
4
View file @
10ec6d30
...
...
@@ -25,17 +25,22 @@
#ifndef __OPENSPACE_MODULE_TOUCH___TUIO_EAR___H__
#define __OPENSPACE_MODULE_TOUCH___TUIO_EAR___H__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
#include
<modules/touch/ext/libTUIO11/TUIO/TuioListener.h>
#include
<modules/touch/ext/libTUIO11/TUIO/TuioClient.h>
#
pragma GCC diagnostic pop
#
ifdef __clang__
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#include
<openspace/util/touch.h>
#include
<ghoul/glm.h>
...
...
This diff is collapsed.
Click to expand it.
src/util/spicemanager.cpp
+
12
-
2
View file @
10ec6d30
...
...
@@ -1026,11 +1026,13 @@ void SpiceManager::findCkCoverage(const std::string& path) {
constexpr
unsigned
int
MaxObj
=
1024
;
constexpr
unsigned
int
WinSiz
=
16384
;
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#elif defined __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
SPICEINT_CELL
(
ids
,
MaxObj
);
SPICEDOUBLE_CELL
(
cover
,
WinSiz
);
...
...
@@ -1043,8 +1045,11 @@ void SpiceManager::findCkCoverage(const std::string& path) {
for
(
SpiceInt
i
=
0
;
i
<
card_c
(
&
ids
);
++
i
)
{
const
SpiceInt
frame
=
SPICE_CELL_ELEM_I
(
&
ids
,
i
);
// NOLINT
#if defined __clang__
#pragma clang diagnostic pop
#elif defined __GNUC__
#pragma GCC diagnostic pop
#endif
scard_c
(
0
,
&
cover
);
ckcov_c
(
path
.
c_str
(),
frame
,
SPICEFALSE
,
"SEGMENT"
,
0.0
,
"TDB"
,
&
cover
);
...
...
@@ -1080,11 +1085,13 @@ void SpiceManager::findSpkCoverage(const std::string& path) {
constexpr
unsigned
int
MaxObj
=
1024
;
constexpr
unsigned
int
WinSiz
=
16384
;
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#elif defined __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
SPICEINT_CELL
(
ids
,
MaxObj
);
SPICEDOUBLE_CELL
(
cover
,
WinSiz
);
...
...
@@ -1097,8 +1104,11 @@ void SpiceManager::findSpkCoverage(const std::string& path) {
for
(
SpiceInt
i
=
0
;
i
<
card_c
(
&
ids
);
++
i
)
{
const
SpiceInt
obj
=
SPICE_CELL_ELEM_I
(
&
ids
,
i
);
// NOLINT
#if defined __clang__
#pragma clang diagnostic pop
#elif defined __GNUC__
#pragma GCC diagnostic pop
#endif
scard_c
(
0
,
&
cover
);
spkcov_c
(
path
.
c_str
(),
obj
,
&
cover
);
...
...
This diff is collapsed.
Click to expand it.
support/cmake/set_openspace_compile_settings.cmake
+
0
-
3
View file @
10ec6d30
...
...
@@ -28,7 +28,6 @@ function (set_openspace_compile_settings target)
set
(
MSVC_WARNINGS
"/MP"
# Multi-threading support
"/W4"
# Highest warning level
"/wd4068"
# unknown pragma
"/wd4127"
# conditional expression is constant [raised by: websocketpp]
"/wd4201"
# nonstandard extension used : nameless struct/union [raised by: GLM]
"/wd5030"
# attribute 'attribute' is not recognized [raised by: codegen]
...
...
@@ -146,7 +145,6 @@ function (set_openspace_compile_settings target)
"-Wno-attributes"
"-Wno-missing-braces"
"-Wno-unknown-attributes"
"-Wno-unknown-pragmas"
)
if
(
OPENSPACE_WARNINGS_AS_ERRORS
)
set
(
CLANG_WARNINGS
${
CLANG_WARNINGS
}
"-Werror"
)
...
...
@@ -185,7 +183,6 @@ function (set_openspace_compile_settings target)
"-Wno-float-equal"
"-Wno-long-long"
"-Wno-unknown-attributes"
"-Wno-unknown-pragmas"
"-Wno-write-strings"
)
if
(
OPENSPACE_WARNINGS_AS_ERRORS
)
...
...
This diff is collapsed.
Click to expand it.
codegen
@
ae8d21e9
Compare
44f17f17
...
ae8d21e9
Subproject commit
44f17f1721651992df3ff6d9a992a02d23572aa7
Subproject commit
ae8d21e9aa2903c6b13060239ffbb675e92e6a51
This diff is collapsed.
Click to expand it.
tests/test_spicemanager.cpp
+
6
-
1
View file @
10ec6d30
...
...
@@ -433,17 +433,22 @@ TEST_CASE("SpiceManager: Get Position Transform Matrix", "[spicemanager]") {
}
}
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#elif defined __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
// transform reference position into new frame
mxvg_c
(
referenceMatrix
,
state
,
3
,
3
,
state_t
);
#if defined __clang__
#pragma clang diagnostic pop
#elif defined __GNUC__
#pragma GCC diagnostic pop
#endif
position
=
positionMatrix
*
position
;
// check transformed values match
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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