Enable compiler warnings

This commit is contained in:
Arun M 2018-05-19 18:43:28 +05:30
parent 99d041deb9
commit 55c36d4c30
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ cmake_minimum_required (VERSION 2.8.11)
project (cpp-jwt) project (cpp-jwt)
#SET (CMAKE_CXX_COMPILER /usr/local/bin/g++) #SET (CMAKE_CXX_COMPILER /usr/local/bin/g++)
SET( CMAKE_CXX_FLAGS "-std=c++14" ) SET( CMAKE_CXX_FLAGS "-std=c++14 -Wall" )
include_directories (include) include_directories (include)

View file

@ -278,7 +278,7 @@ TEST (EncodeTest, HeaderParamTest)
bool ret = obj.header().add_header("kid", 1234567); bool ret = obj.header().add_header("kid", 1234567);
EXPECT_TRUE (ret); EXPECT_TRUE (ret);
ret = obj.header().add_header("crit", std::array<std::string, 1>{"exp"}); ret = obj.header().add_header("crit", std::array<std::string, 1>{ {"exp"} });
EXPECT_TRUE (ret); EXPECT_TRUE (ret);
std::cout << obj.header() << std::endl; std::cout << obj.header() << std::endl;