Skip to content
Permalink
Browse files

Fix build warnings on msvc

  • Loading branch information
nyalldawson committed Mar 1, 2018
1 parent 2345852 commit 3c78fb58aaba45fffde9e63efa2d6bd3ccf267b6
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgis.h
@@ -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)
@@ -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

0 comments on commit 3c78fb5

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