Skip to content

Commit 24646aa

Browse files
authored
Remove outdated warnings (#6894)
1 parent 51b74a9 commit 24646aa

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- ADDED: Add support for accessing edge flags in `process_segment` [#6658](https://github.com/Project-OSRM/osrm-backend/pull/6658)
99
- Build:
1010
- CHANGED: Upgrade CI actions to latest versions [#6893](https://github.com/Project-OSRM/osrm-backend/pull/6893)
11+
- CHANGED: Remove outdated warnings #6894 [#6894](https://github.com/Project-OSRM/osrm-backend/pull/6894)
1112
- ADDED: Add CI job which builds OSRM with gcc 12. [#6455](https://github.com/Project-OSRM/osrm-backend/pull/6455)
1213
- CHANGED: Upgrade to clang-tidy 15. [#6439](https://github.com/Project-OSRM/osrm-backend/pull/6439)
1314
- CHANGED: Update actions/cache to v3. [#6420](https://github.com/Project-OSRM/osrm-backend/pull/6420)

cmake/warnings.cmake

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ add_warning(all)
5050
add_warning(extra)
5151
add_warning(pedantic)
5252
add_warning(error) # treat all warnings as errors
53-
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
54-
add_warning(strict-overflow=2)
55-
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
53+
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
5654
add_warning(strict-overflow=1)
5755
endif()
5856
add_warning(suggest-override)
@@ -79,15 +77,5 @@ add_warning(sizeof-array-argument)
7977
add_warning(switch-bool)
8078
add_warning(tautological-compare)
8179
add_warning(trampolines)
82-
no_warning(c++17-extensions)
83-
# TODO: these warnings are not enabled by default, but we consider them as useful and good to enable in the future
84-
no_warning(implicit-int-conversion)
85-
no_warning(implicit-float-conversion)
86-
no_warning(unused-member-function)
87-
no_warning(old-style-cast)
88-
no_warning(non-virtual-dtor)
89-
no_warning(float-conversion)
90-
no_warning(sign-conversion)
91-
no_warning(shorten-64-to-32)
92-
no_warning(padded)
93-
no_warning(missing-noreturn)
80+
# these warnings are not enabled by default
81+
# no_warning(name-of-warning)

unit_tests/util/json_render.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ BOOST_AUTO_TEST_CASE(test_json_issue_6531)
8787
BOOST_CHECK_EQUAL(output, "0.1234567892");
8888

8989
output.clear();
90-
renderer(123456789123456789);
90+
renderer(123456789123456789.);
9191
BOOST_CHECK_EQUAL(output, "1.234567891e+17");
9292
}
9393

0 commit comments

Comments
 (0)