git: b1f9d0e1db39 - main - textproc/wv: fix build with clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Dec 2022 17:43:56 UTC
The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=b1f9d0e1db39fd59537ff549ce1d3bc808122e6d commit b1f9d0e1db39fd59537ff549ce1d3bc808122e6d Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-12-15 20:56:48 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-12-18 17:38:29 +0000 textproc/wv: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that textproc/wv failed to build with clang 15: wvSummary.c:104:17: error: incompatible integer to pointer conversion initializing 'const GValue *' (aka 'const struct _GValue *') with an expression of type 'int' [-Wint-conversion] GValue const *val = gsf_doc_prop_get_val (prop); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wvSummary.c:146:21: error: incompatible integer to pointer conversion initializing 'GsfDocMetaData *' (aka 'struct _GsfDocMetaData *') with an expression of type 'int' [-Wint-conversion] GsfDocMetaData *meta_data = gsf_doc_meta_data_new (); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ Those functions are declared in <gsf/gsf-doc-meta-data.h>, but that header is not included in wvSummary.c. PR: 268399 Approved by: portmgr (tcberner) MFH: 2022Q4 --- textproc/wv/files/patch-wvSummary.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/textproc/wv/files/patch-wvSummary.c b/textproc/wv/files/patch-wvSummary.c new file mode 100644 index 000000000000..7a01012de0ee --- /dev/null +++ b/textproc/wv/files/patch-wvSummary.c @@ -0,0 +1,10 @@ +--- wvSummary.c.orig 2009-09-01 08:38:31 UTC ++++ wvSummary.c +@@ -33,6 +33,7 @@ + #include <gsf/gsf-msole-utils.h> + #include <gsf/gsf-docprop-vector.h> + #include <gsf/gsf-meta-names.h> ++#include <gsf/gsf-doc-meta-data.h> + + #include <stdio.h> + #include <stdlib.h>