0
0
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:
TyRoXx 2015-02-04 21:34:46 +01:00
parent 9819839d69
commit a88a146b5d
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall ${CMAKE_CXX_FLAGS}")
endif ()
set(CMAKE_CXX_FLAGS "-Wconversion ${CMAKE_CXX_FLAGS}")
set(include_dir "${PROJECT_SOURCE_DIR}/include")
file(GLOB_RECURSE sqlpp_headers "${include_dir}/*.h")

View File

@ -107,7 +107,7 @@ int main()
.from(p.join(x).on(p.feature == x.feature))
.where(true)))
{
int id = row.id;
int64_t id = row.id;
std::string name = row.name;
}
#endif