Skip to content

Commit

Permalink
Fixed the FALLTHROUGH macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martí ANgelats i Ribera authored and m-kuhn committed Aug 6, 2017
1 parent a55b6f4 commit 789a838
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/qgis.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 789a838

Please sign in to comment.