Skip to content
Permalink
Browse files

Fix MAYBE_UNUSED definition on non clang compilers

  • Loading branch information
nyalldawson committed Feb 28, 2018
1 parent 5fda402 commit 25f4f57bf4ad4587ed4fe7f233dd2a3ec2cab397
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgis.h
@@ -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


1 comment on commit 25f4f57

@3nids

This comment has been minimized.

Copy link
Member

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

Thanks

Please sign in to comment.
You can’t perform that action at this time.