Skip to content
Permalink
Browse files

Fix clang fallthrough for libdxfrw

  • Loading branch information
m-kuhn committed Aug 6, 2018
1 parent 2f829e0 commit 00fbd412d8b6ff7af37bbcc392555e8f39948154
Showing with 4 additions and 3 deletions.
  1. +3 −2 external/libdxfrw/intern/dwgutil.cpp
  2. +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

0 comments on commit 00fbd41

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