projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
693dacb
)
Fix error rised by GCC8+
author
Carlo Bramini
<30959007+carlo-bramini@users.noreply.github.com>
Mon, 1 Jul 2019 14:06:43 +0000
(16:06 +0200)
committer
GitHub
<noreply@github.com>
Mon, 1 Jul 2019 14:06:43 +0000
(16:06 +0200)
src/hb-directwrite.cc
patch
|
blob
|
history
diff --git
a/src/hb-directwrite.cc
b/src/hb-directwrite.cc
index
1b2bd19
..
865100a
100644
(file)
--- a/
src/hb-directwrite.cc
+++ b/
src/hb-directwrite.cc
@@
-173,8
+173,18
@@
_hb_directwrite_shaper_face_data_create (hb_face_t *face)
t_DWriteCreateFactory p_DWriteCreateFactory;
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcast-function-type"
+#endif
+
p_DWriteCreateFactory = (t_DWriteCreateFactory)
GetProcAddress(data->dwrite_dll, "DWriteCreateFactory");
+
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif
+
if (p_DWriteCreateFactory == NULL)
FAIL ("Cannot find DWriteCreateFactory().");