Skip to content
Permalink
Browse files

Fixed the FALLTHROUGH macro.

  • Loading branch information
Martí ANgelats i Ribera authored and m-kuhn committed Aug 6, 2017
1 parent a55b6f4 commit 789a83834625fbfa444a7a5460ac29e0179fb268
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/qgis.h
@@ -390,9 +390,11 @@ typedef unsigned long long qgssize;
#endif
#endif

#if defined(__clang__)
#if __cplusplus >= 201500
#define FALLTHROUGH [[fallthrough]];
#elif defined(__clang__)
#define FALLTHROUGH //[[clang::fallthrough]]
#elif defined(__GNUC__)
#elif defined(__GNUC__) && __GNUC__ >= 7
#define FALLTHROUGH [[gnu::fallthrough]];
#else
#define FALLTHROUGH

0 comments on commit 789a838

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