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
9819839d69
commit
a88a146b5d
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user