Skip to content

Commit

Permalink
Fix clang fallthrough for libdxfrw
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 6, 2018
1 parent 2f829e0 commit 00fbd41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions external/libdxfrw/intern/dwgutil.cpp
Expand Up @@ -19,7 +19,7 @@
#if __cplusplus >= 201500
#define FALLTHROUGH [[fallthrough]];
#elif defined(__clang__)
#define FALLTHROUGH //[[clang::fallthrough]]
#define FALLTHROUGH [[clang::fallthrough]]
#elif defined(__GNUC__) && __GNUC__ >= 7
#define FALLTHROUGH [[gnu::fallthrough]];
#else
Expand All @@ -28,7 +28,8 @@

#include "qgslogger.h"

/** Utility function
/**
* Utility function
* convert a int to string in hex
**/
namespace DRW
Expand Down
2 changes: 1 addition & 1 deletion external/libdxfrw/libdxfrw.cpp
Expand Up @@ -27,7 +27,7 @@
#if __cplusplus >= 201500
#define FALLTHROUGH [[fallthrough]];
#elif defined(__clang__)
#define FALLTHROUGH //[[clang::fallthrough]]
#define FALLTHROUGH [[clang::fallthrough]]
#elif defined(__GNUC__) && __GNUC__ >= 7
#define FALLTHROUGH [[gnu::fallthrough]];
#else
Expand Down

0 comments on commit 00fbd41

Please sign in to comment.