mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Added -Wall, took care of a bunch of compiler warnings
This commit is contained in:
parent
f14b6025d3
commit
08786c7cf9
@ -28,9 +28,9 @@ enable_testing()
|
|||||||
|
|
||||||
message(STATUS "Using ${CMAKE_CXX_COMPILER} (compiler id: ${CMAKE_CXX_COMPILER_ID})")
|
message(STATUS "Using ${CMAKE_CXX_COMPILER} (compiler id: ${CMAKE_CXX_COMPILER_ID})")
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -Wall ${CMAKE_CXX_FLAGS}")
|
||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall ${CMAKE_CXX_FLAGS}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set(include_dir "${PROJECT_SOURCE_DIR}/include")
|
set(include_dir "${PROJECT_SOURCE_DIR}/include")
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
namespace sqlpp
|
namespace sqlpp
|
||||||
{
|
{
|
||||||
template<typename Table, typename ColumnSpec>
|
template<typename Table, typename ColumnSpec>
|
||||||
class column_t;
|
struct column_t;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -48,8 +48,6 @@ namespace sqlpp
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
auto value(T t) -> wrap_operand_t<T>
|
auto value(T t) -> wrap_operand_t<T>
|
||||||
{
|
{
|
||||||
using _provided_tables = detail::type_set<>;
|
|
||||||
using _required_tables = ::sqlpp::detail::type_set<>;
|
|
||||||
static_assert(is_wrapped_value_t<wrap_operand_t<T>>::value, "value() is to be called with non-sql-type like int, or string");
|
static_assert(is_wrapped_value_t<wrap_operand_t<T>>::value, "value() is to be called with non-sql-type like int, or string");
|
||||||
return { t };
|
return { t };
|
||||||
}
|
}
|
||||||
|
@ -96,9 +96,9 @@ namespace sqlpp
|
|||||||
insert_list_data_t& operator=(insert_list_data_t&&) = default;
|
insert_list_data_t& operator=(insert_list_data_t&&) = default;
|
||||||
~insert_list_data_t() = default;
|
~insert_list_data_t() = default;
|
||||||
|
|
||||||
|
std::tuple<Assignments...> _assignments; // FIXME: Need to replace _columns and _values by _assignments (connector-container requires assignments)
|
||||||
std::tuple<simple_column_t<typename Assignments::_column_t>...> _columns;
|
std::tuple<simple_column_t<typename Assignments::_column_t>...> _columns;
|
||||||
std::tuple<typename Assignments::_value_t...> _values;
|
std::tuple<typename Assignments::_value_t...> _values;
|
||||||
std::tuple<Assignments...> _assignments; // FIXME: Need to replace _columns and _values by _assignments (connector-container requires assignments)
|
|
||||||
interpretable_list_t<Database> _dynamic_columns;
|
interpretable_list_t<Database> _dynamic_columns;
|
||||||
interpretable_list_t<Database> _dynamic_values;
|
interpretable_list_t<Database> _dynamic_values;
|
||||||
};
|
};
|
||||||
|
@ -71,7 +71,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
std::string _get_name() const
|
std::string _get_name() const
|
||||||
{
|
{
|
||||||
_impl->_get_name();
|
return _impl->_get_name();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user