8000 Re-enable ignored-qualifiers warning and fix · unittest-cpp/unittest-cpp@7d7ba0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d7ba0a

Browse files
committed
Re-enable ignored-qualifiers warning and fix
1 parent e161d44 commit 7d7ba0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (${UTPP_AMPLIFY_WARNINGS})
3333
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
3434
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
3535
else()
36-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-ignored-qualifiers")
36+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
3737
endif()
3838
endif()
3939

tests/TestMemoryOutStream.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using namespace std;
1111

1212
namespace {
1313

14-
const char* const maxSignedIntegralStr(size_t nBytes)
14+
const char* maxSignedIntegralStr(size_t nBytes)
1515
{
1616
switch(nBytes)
1717
{
@@ -28,7 +28,7 @@ namespace {
2828
}
2929
}
3030

31-
const char* const minSignedIntegralStr(size_t nBytes)
31+
const char* minSignedIntegralStr(size_t nBytes)
3232
{
3333
switch(nBytes)
3434
{
@@ -45,7 +45,7 @@ namespace {
4545
}
4646
}
4747

48-
const char* const maxUnsignedIntegralStr(size_t nBytes)
48+
const char* maxUnsignedIntegralStr(size_t nBytes)
4949
{
5050
switch(nBytes)
5151
{

0 commit comments

Comments
 (0)
0