0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Added -Wall, took care of a bunch of compiler warnings

This commit is contained in:
rbock 2014-06-28 14:39:04 +02:00
parent f14b6025d3
commit 08786c7cf9
5 changed files with 5 additions and 7 deletions

View File

@ -28,9 +28,9 @@ enable_testing()
message(STATUS "Using ${CMAKE_CXX_COMPILER} (compiler id: ${CMAKE_CXX_COMPILER_ID})")
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")
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall ${CMAKE_CXX_FLAGS}")
endif ()
set(include_dir "${PROJECT_SOURCE_DIR}/include")

View File

@ -31,7 +31,7 @@
namespace sqlpp
{
template<typename Table, typename ColumnSpec>
class column_t;
struct column_t;
}
#endif

View File

@ -48,8 +48,6 @@ namespace sqlpp
template<typename 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");
return { t };
}

View File

@ -96,9 +96,9 @@ namespace sqlpp
insert_list_data_t& operator=(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<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_values;
};

View File

@ -71,7 +71,7 @@ namespace sqlpp
std::string _get_name() const
{
_impl->_get_name();
return _impl->_get_name();
}
private: