From 6756be557349e36d4483d643054c1cd83ed43e09 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 16 Mar 2019 18:18:38 +0000 Subject: [PATCH] Supress clang-format message for unused constants. --- include/dic.h | 4 ++++ include/dicformat/consts.h | 4 ++++ include/dicformat/enums.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/include/dic.h b/include/dic.h index 801d0c6..5b005cb 100644 --- a/include/dic.h +++ b/include/dic.h @@ -36,6 +36,8 @@ // Copyright © 2011-2019 Natalia Portillo // ****************************************************************************/ +#pragma clang diagnostic push +#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #ifndef LIBDICFORMAT_DIC_H #define LIBDICFORMAT_DIC_H @@ -1048,3 +1050,5 @@ typedef enum } MediaType; #endif //LIBDICFORMAT_DIC_H + +#pragma clang diagnostic pop \ No newline at end of file diff --git a/include/dicformat/consts.h b/include/dicformat/consts.h index c3a21bd..3269817 100644 --- a/include/dicformat/consts.h +++ b/include/dicformat/consts.h @@ -30,6 +30,8 @@ // Copyright © 2011-2019 Natalia Portillo // ****************************************************************************/ +#pragma clang diagnostic push +#pragma ide diagnostic ignored "OCUnusedMacroInspection" #ifndef LIBDICFORMAT_CONSTS_H #define LIBDICFORMAT_CONSTS_H @@ -55,3 +57,5 @@ #define CD_DFIX_MASK = 0x00FFFFFF; #endif //LIBDICFORMAT_CONSTS_H + +#pragma clang diagnostic pop \ No newline at end of file diff --git a/include/dicformat/enums.h b/include/dicformat/enums.h index 21c550c..7301e68 100644 --- a/include/dicformat/enums.h +++ b/include/dicformat/enums.h @@ -30,6 +30,8 @@ // Copyright © 2011-2019 Natalia Portillo // ****************************************************************************/ +#pragma clang diagnostic push +#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #ifndef LIBDICFORMAT_ENUMS_H #define LIBDICFORMAT_ENUMS_H @@ -255,3 +257,5 @@ typedef enum #endif //LIBDICFORMAT_ENUMS_H + +#pragma clang diagnostic pop \ No newline at end of file