mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
enable -Wconversion and fix a warning
This commit is contained in:
parent
aa9c8dcfce
commit
25883fc8ea
@ -36,6 +36,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall ${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall ${CMAKE_CXX_FLAGS}")
|
||||||
endif ()
|
endif ()
|
||||||
|
set(CMAKE_CXX_FLAGS "-Wconversion ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
set(include_dir "${PROJECT_SOURCE_DIR}/include")
|
set(include_dir "${PROJECT_SOURCE_DIR}/include")
|
||||||
file(GLOB_RECURSE sqlpp_headers "${include_dir}/*.h")
|
file(GLOB_RECURSE sqlpp_headers "${include_dir}/*.h")
|
||||||
|
@ -110,7 +110,7 @@ int main()
|
|||||||
.from(p.join(x).on(p.feature == x.cheesecake))
|
.from(p.join(x).on(p.feature == x.cheesecake))
|
||||||
.where(true)))
|
.where(true)))
|
||||||
{
|
{
|
||||||
int id = row.id;
|
int64_t id = row.id;
|
||||||
std::string name = row.name;
|
std::string name = row.name;
|
||||||
std::string x_name = row.x.name;
|
std::string x_name = row.x.name;
|
||||||
int cheesecake = row.x.cheesecake;
|
int cheesecake = row.x.cheesecake;
|
||||||
|
Loading…
Reference in New Issue
Block a user