Skip to content

Commit

Permalink
#2286: Remove workaround in code for gcc-8
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable authored and cz4rs committed Nov 14, 2024
1 parent bc1f86a commit c5a66f7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/vt/runnable/runnable.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define INCLUDED_VT_RUNNABLE_RUNNABLE_H

#include "vt/messaging/message/smart_ptr.h"
#include "vt/configs/debug/debug_var_unused.h"
#include "vt/context/runnable_context/td.h"
#include "vt/context/runnable_context/trace.h"
#include "vt/context/runnable_context/set_context.h"
Expand Down Expand Up @@ -121,13 +120,11 @@ struct RunnableNew {
*
* \param[in] in_is_threaded whether the handler can be run with a thread
*/
explicit RunnableNew(bool in_is_threaded)
explicit RunnableNew([[maybe_unused]] bool in_is_threaded)
#if vt_check_enabled(fcontext)
: is_threaded_(in_is_threaded)
#endif
{
vt_force_use(in_is_threaded); // FIXME gcc-8 errors out on [[maybe_unused]]
}
{ }

RunnableNew(RunnableNew&&) = default;
RunnableNew(RunnableNew const&) = delete;
Expand Down

0 comments on commit c5a66f7

Please sign in to comment.