Commit 2733bad 1 parent dab3308 commit 2733bad Copy full SHA for 2733bad
File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,9 @@ endif()
178
178
# Get rid of certain warnings, and make msvc support utf-8 without adding bom
179
179
180
180
target_compile_options (elements PRIVATE
181
- $<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0>
182
- $<$<CXX_COMPILER_ID:Clang>:-Wall -Wpedantic -ftemplate-backtrace-limit=0>
183
- $<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wpedantic -ftemplate-backtrace-limit=0>
181
+ $<$<CXX_COMPILER_ID:GNU>:-Werror - Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0>
182
+ $<$<CXX_COMPILER_ID:Clang>:-Werror - Wall -Wpedantic -ftemplate-backtrace-limit=0>
183
+ $<$<CXX_COMPILER_ID:AppleClang>:-Werror - Wall -Wpedantic -ftemplate-backtrace-limit=0>
184
184
$<$<CXX_COMPILER_ID:MSVC >:/W4 /wd4244 /wd4305 /wd4996 /wd4267 /wd4018 /utf-8>
185
185
)
186
186
@@ -191,7 +191,7 @@ endif()
191
191
192
192
if (APPLE )
193
193
# Not sure why APPLE is not picking the target_compile_options above
194
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0" )
194
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror - Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0" )
195
195
endif ()
196
196
197
197
###############################################################################
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ namespace cycfi { namespace elements
135
135
136
136
template <size_t num_states>
137
137
inline bool selector_base<num_states>::scroll(
138
- context const & ctx, point dir, point p )
138
+ context const & /* ctx */ , point /* dir */ , point /* p */ )
139
139
{
140
140
// We don't allow selector move via the scroll wheel.
141
141
return false ;
@@ -185,7 +185,7 @@ namespace cycfi { namespace elements
185
185
186
186
template <unsigned size>
187
187
inline view_limits basic_thumb_element<size>
188
- ::limits (basic_context const & ctx) const
188
+ ::limits (basic_context const & /* ctx */ ) const
189
189
{
190
190
auto pt = point{ float (size), float (size) };
191
191
return view_limits{ pt, pt };
@@ -234,7 +234,7 @@ namespace cycfi { namespace elements
234
234
235
235
template <unsigned size, bool vertical>
236
236
inline view_limits basic_track_element<size, vertical>
237
- ::limits (basic_context const & ctx) const
237
+ ::limits (basic_context const & /* ctx */ ) const
238
238
{
239
239
auto sz = float (size);
240
240
auto min_length_ = float (min_length);
You can’t perform that action at this time.
0 commit comments