mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Enable compiler warnings
This commit is contained in:
parent
99d041deb9
commit
55c36d4c30
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue