mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
[pragma] Only add if GCC or clang
This commit is contained in:
1 parent
c2ea7a9da4
commit
f13b6786f0
1 file changed
+3
@@ -30,6 +30,7 @@
|
||||
#define HB_HH
|
||||
|
||||
#ifndef HB_NO_DIAGNOSTIC_PRAGMAS
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
/* Rules:
|
||||
*
|
||||
* - All pragmas are declared GCC even if they are clang ones. Otherwise GCC
|
||||
@@ -102,6 +103,8 @@
|
||||
#pragma GCC diagnostic ignored "-Wpacked" // Erratic impl in clang
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
||||
Reference in new issue
Block a user