Skip to content

Commit 93419c7

Browse files
treat unused parameter as error
Signed-off-by: romintomasetti <romin.tomasetti@gmail.com>
1 parent e5dbe49 commit 93419c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ add_library(stdexec_executable_flags INTERFACE)
226226

227227
# Enable warnings
228228
target_compile_options(stdexec_executable_flags INTERFACE
229-
$<$<STREQUAL:${stdexec_compiler_frontend},GNU>:-Wall>
229+
$<$<STREQUAL:${stdexec_compiler_frontend},GNU>:-Wall,-Werror=unused-parameter>
230230
$<$<STREQUAL:${stdexec_compiler_frontend},AppleClang>:-Wall>
231231
$<$<STREQUAL:${stdexec_compiler_frontend},MSVC>:/W4>)
232232

include/stdexec/__detail/__submit.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ namespace stdexec {
135135
: __result_(connect(static_cast<_Sender&&>(__sndr), static_cast<_Receiver&&>(__rcvr))) {
136136
}
137137

138-
void submit(_Sender&& __sndr, _Receiver&&) noexcept {
138+
void submit(_Sender&&, _Receiver&&) noexcept {
139139
stdexec::start(__result_);
140140
}
141141

0 commit comments

Comments
 (0)