[pango] mini-fribidi: Squash -Werror=undef failures due to use of #if
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] mini-fribidi: Squash -Werror=undef failures due to use of #if
- Date: Mon, 14 Aug 2017 21:13:41 +0000 (UTC)
commit 599ffcf042bbca6f87edff0e241958523145294d
Author: Philip Withnall <withnall endlessm com>
Date: Sat Aug 12 10:25:26 2017 +0100
mini-fribidi: Squash -Werror=undef failures due to use of #if
The FriBiDi code uses #if rather than #ifdef, which pedantic compilers
warn about if the macro is undefined. The new Meson build sets
-Werror=undef, promoting these warnings to failures, and making CI
systems using certain compiler versions (in this case, Debian Jessie)
sad.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=786192
pango/mini-fribidi/fribidi_config.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pango/mini-fribidi/fribidi_config.h b/pango/mini-fribidi/fribidi_config.h
index 82e4da1..da0610d 100644
--- a/pango/mini-fribidi/fribidi_config.h
+++ b/pango/mini-fribidi/fribidi_config.h
@@ -5,6 +5,15 @@
#define HAS_FRIBIDI_TAB_CHAR_TYPE_2_I 1
#define FRIBIDI_API
+/* squash -Werror=undef warnings from the other char types */
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_9_I 0
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_8_I 0
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_7_I 0
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_6_I 0
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_5_I 0
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_4_I 0
+#define HAS_FRIBIDI_TAB_CHAR_TYPE_3_I 0
+
/* this was in fribidi_unicode.h. we only need these bits from that
* file, so moved here. */
#define UNI_MAX_BIDI_LEVEL 61
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]