Re-enable ignored-qualifiers warning and fix

This commit is contained in:
Patrick Johnmeyer 2016-08-27 20:41:41 -05:00
parent e161d44077
commit 7d7ba0aba4
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ if (${UTPP_AMPLIFY_WARNINGS})
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-ignored-qualifiers")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
endif()
endif()

View file

@ -11,7 +11,7 @@ using namespace std;
namespace {
const char* const maxSignedIntegralStr(size_t nBytes)
const char* maxSignedIntegralStr(size_t nBytes)
{
switch(nBytes)
{
@ -28,7 +28,7 @@ namespace {
}
}
const char* const minSignedIntegralStr(size_t nBytes)
const char* minSignedIntegralStr(size_t nBytes)
{
switch(nBytes)
{
@ -45,7 +45,7 @@ namespace {
}
}
const char* const maxUnsignedIntegralStr(size_t nBytes)
const char* maxUnsignedIntegralStr(size_t nBytes)
{
switch(nBytes)
{