Skip to content

Commit

Permalink
Silence implicit-fallthrough warning in GCC when FALLTHROUGH macro is…
Browse files Browse the repository at this point in the history
… used
  • Loading branch information
nyalldawson committed Jul 12, 2017
1 parent 773b2e7 commit 3c1bdf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgis.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c1bdf0

Please sign in to comment.