Skip to content

Commit ea7dbe8

Browse files
committed
for a few warnings more
1 parent fcccfc0 commit ea7dbe8

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ if(MSVC)
3232
add_compile_options(/EHsc /FAs)
3333
endif()
3434

35+
if(GCC)
36+
add_compile_options(-fPIC -fvisibility=hidden -Wno-deprecated-declarations -Wall -Wextra)
37+
endif()
38+
3539
if(BUILD_TESTING)
3640
message(STATUS "Building tests")
3741
include(CTest)

include/boost/openmethod/compiler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ void compiler<Policy>::write_global_data() {
10771077

10781078
Policy::dispatch_data.resize(dispatch_data_size);
10791079
auto gv_first = Policy::dispatch_data.data();
1080-
auto gv_last = gv_first + Policy::dispatch_data.size();
1080+
[[maybe_unused]] auto gv_last = gv_first + Policy::dispatch_data.size();
10811081
auto gv_iter = gv_first;
10821082

10831083
++trace << "Initializing multi-method dispatch tables at " << gv_iter

include/boost/openmethod/with_vptr.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ class with_vptr_aux<Class, Base, false> : with_vptr_derived {
113113
} // namespace detail
114114

115115
template<typename...>
116-
struct with_vptr;
116+
class with_vptr;
117117

118118
template<class Class>
119-
struct with_vptr<Class>
120-
: detail::with_vptr_aux<Class, BOOST_OPENMETHOD_DEFAULT_POLICY, true> {};
119+
class with_vptr<Class> : public detail::with_vptr_aux<
120+
Class, BOOST_OPENMETHOD_DEFAULT_POLICY, true> {};
121121

122122
template<class Class, class Other>
123-
struct with_vptr<Class, Other>
124-
: detail::with_vptr_aux<Class, Other, detail::is_policy<Other>> {};
123+
class with_vptr<Class, Other>
124+
: public detail::with_vptr_aux<Class, Other, detail::is_policy<Other>> {};
125125

126126
template<class Class, class Base1, class Base2, class... MoreBases>
127127
class with_vptr<Class, Base1, Base2, MoreBases...> : detail::with_vptr_derived {

0 commit comments

Comments
 (0)