Skip to content
Permalink
Browse files

Silence implicit-fallthrough warning in GCC when FALLTHROUGH macro is…

… used
  • Loading branch information
nyalldawson committed Jul 12, 2017
1 parent 773b2e7 commit 3c1bdf059d1e92f8a8adca87837eef1aa56f7725
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgis.h
@@ -385,6 +385,8 @@ typedef unsigned long long qgssize;

#if defined(__clang__)
#define FALLTHROUGH //[[clang::fallthrough]]
#elif defined(__GNUC__)
#define FALLTHROUGH [[gnu::fallthrough]];
#else
#define FALLTHROUGH
#endif

0 comments on commit 3c1bdf0

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