Guard clang pragmas against MSVC.

This commit is contained in:
2022-06-21 21:12:25 +01:00
parent 095ffc5806
commit 76c9153882
4 changed files with 24 additions and 4 deletions

View File

@@ -16,8 +16,11 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif
#ifndef LIBAARUFORMAT_AARU_H
#define LIBAARUFORMAT_AARU_H
@@ -1166,4 +1169,6 @@ typedef enum
#endif // LIBAARUFORMAT_AARU_H
#pragma clang diagnostic pop
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif

View File

@@ -16,8 +16,11 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
#endif
#ifndef LIBAARUFORMAT_CONSTS_H
#define LIBAARUFORMAT_CONSTS_H
@@ -50,4 +53,6 @@
#endif // LIBAARUFORMAT_CONSTS_H
#pragma clang diagnostic pop
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif

View File

@@ -16,8 +16,11 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif
#ifndef LIBAARUFORMAT_ENUMS_H
#define LIBAARUFORMAT_ENUMS_H
@@ -285,4 +288,6 @@ typedef enum
#endif // LIBAARUFORMAT_ENUMS_H
#pragma clang diagnostic pop
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif

View File

@@ -16,8 +16,11 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif
#ifndef LIBAARUFORMAT_STRUCTS_H
#define LIBAARUFORMAT_STRUCTS_H
@@ -309,4 +312,6 @@ typedef struct CdEccContext
#endif // LIBAARUFORMAT_STRUCTS_H
#pragma clang diagnostic pop
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif