Skip to content

Commit

Permalink
Fix MAYBE_UNUSED definition on non clang compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 28, 2018
1 parent 5fda402 commit 25f4f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgis.h
Expand Up @@ -566,9 +566,9 @@ typedef unsigned long long qgssize;
#elif defined(__clang__)
#define MAYBE_UNUSED [[maybe_unused]]
#elif __has_cpp_attribute(gnu::unused)
#define NODISCARD [[gnu::unused]]
#define MAYBE_UNUSED [[gnu::unused]]
#else
#define NODISCARD
#define MAYBE_UNUSED
#endif


Expand Down

1 comment on commit 25f4f57

@3nids
Copy link
Member

@3nids 3nids commented on 25f4f57 Mar 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.