Skip to content

Commit

Permalink
Fix build warnings on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 1, 2018
1 parent 2345852 commit 3c78fb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgis.h
Expand Up @@ -553,6 +553,8 @@ typedef unsigned long long qgssize;
#define NODISCARD [[nodiscard]]
#elif defined(__clang__)
#define NODISCARD [[nodiscard]]
#elif defined(_MSC_VER)
#define NODISCARD // no support
#elif __has_cpp_attribute(nodiscard)
#define NODISCARD [[nodiscard]]
#elif __has_cpp_attribute(gnu::warn_unused_result)
Expand All @@ -565,6 +567,8 @@ typedef unsigned long long qgssize;
#define MAYBE_UNUSED [[maybe_unused]]
#elif defined(__clang__)
#define MAYBE_UNUSED [[maybe_unused]]
#elif defined(_MSC_VER)
#define MAYBE_UNUSED // no support
#elif __has_cpp_attribute(gnu::unused)
#define MAYBE_UNUSED [[gnu::unused]]
#else
Expand Down

0 comments on commit 3c78fb5

Please sign in to comment.