Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix clang fallthrough for libdxfrw
- Loading branch information
Showing
with
4 additions
and
3 deletions.
-
+3
−2
external/libdxfrw/intern/dwgutil.cpp
-
+1
−1
external/libdxfrw/libdxfrw.cpp
|
@@ -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 |
|
@@ -28,7 +28,8 @@ |
|
|
|
|
|
#include "qgslogger.h" |
|
|
|
|
|
/** Utility function |
|
|
/** |
|
|
* Utility function |
|
|
* convert a int to string in hex |
|
|
**/ |
|
|
namespace DRW |
|
|
|
@@ -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 |
|
|