Skip to content

Commit 00fbd41

Browse files
committedAug 6, 2018
Fix clang fallthrough for libdxfrw
1 parent 2f829e0 commit 00fbd41

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎external/libdxfrw/intern/dwgutil.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#if __cplusplus >= 201500
2020
#define FALLTHROUGH [[fallthrough]];
2121
#elif defined(__clang__)
22-
#define FALLTHROUGH //[[clang::fallthrough]]
22+
#define FALLTHROUGH [[clang::fallthrough]]
2323
#elif defined(__GNUC__) && __GNUC__ >= 7
2424
#define FALLTHROUGH [[gnu::fallthrough]];
2525
#else
@@ -28,7 +28,8 @@
2828

2929
#include "qgslogger.h"
3030

31-
/** Utility function
31+
/**
32+
* Utility function
3233
* convert a int to string in hex
3334
**/
3435
namespace DRW

‎external/libdxfrw/libdxfrw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#if __cplusplus >= 201500
2828
#define FALLTHROUGH [[fallthrough]];
2929
#elif defined(__clang__)
30-
#define FALLTHROUGH //[[clang::fallthrough]]
30+
#define FALLTHROUGH [[clang::fallthrough]]
3131
#elif defined(__GNUC__) && __GNUC__ >= 7
3232
#define FALLTHROUGH [[gnu::fallthrough]];
3333
#else

0 commit comments

Comments
 (0)
Please sign in to comment.