Skip to content

Commit

Permalink
Disable Clang 18 warning when building module
Browse files Browse the repository at this point in the history
I'm pretty sure we're doing things right
  • Loading branch information
tcbrindle committed Jun 3, 2024
1 parent 857fc4b commit 3dd9ef6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions module/flux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,15 @@ export module flux;

#define FLUX_MODULE_INTERFACE

#ifdef __clang__
#pragma clang diagnostic push
#if __has_warning("-Winclude-angled-in-module-purview")
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
#endif
#endif

#include <flux.hpp>

#ifdef __clang__
#pragma clang diagnostic pop
#endif

0 comments on commit 3dd9ef6

Please sign in to comment.