Skip to content

Commit 25f4f57

Browse files
committed
Fix MAYBE_UNUSED definition on non clang compilers
1 parent 5fda402 commit 25f4f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,9 @@ typedef unsigned long long qgssize;
566566
#elif defined(__clang__)
567567
#define MAYBE_UNUSED [[maybe_unused]]
568568
#elif __has_cpp_attribute(gnu::unused)
569-
#define NODISCARD [[gnu::unused]]
569+
#define MAYBE_UNUSED [[gnu::unused]]
570570
#else
571-
#define NODISCARD
571+
#define MAYBE_UNUSED
572572
#endif
573573

574574

0 commit comments

Comments
 (0)