diff options
author | David Robillard <d@drobilla.net> | 2022-11-02 14:14:36 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:18:33 -0500 |
commit | 185367990537f6a50171553fa66f2e3bde65810a (patch) | |
tree | 4972a4486ad01f63b4c54fd276240b084839b109 | |
parent | 96a865694af80227af1c5c8d96554f9d943687b2 (diff) | |
download | sord-185367990537f6a50171553fa66f2e3bde65810a.tar.gz sord-185367990537f6a50171553fa66f2e3bde65810a.tar.bz2 sord-185367990537f6a50171553fa66f2e3bde65810a.zip |
Ignore warnings in PCRE2 headers
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | src/sord_validate.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 257d3de..874885d 100644 --- a/meson.build +++ b/meson.build @@ -118,7 +118,7 @@ if not get_option('tools').disabled() meson.override_find_program('sordi', sordi) - pcre2_dep = dependency('libpcre2-8', required: false) + pcre2_dep = dependency('libpcre2-8', include_type: 'system', required: false) if pcre2_dep.found() sord_validate = executable('sord_validate', diff --git a/src/sord_validate.c b/src/sord_validate.c index 6d40138..18f7486 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -9,8 +9,17 @@ #include "sord_config.h" #if USE_PCRE2 +# if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdisabled-macro-expansion" +# endif + # define PCRE2_CODE_UNIT_WIDTH 8 # include <pcre2.h> + +# if defined(__clang__) +# pragma clang diagnostic pop +# endif #endif #ifdef _WIN32 |