git: d30ead133df4 - main - textproc/scdoc: unbreak build with clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Dec 2022 17:38:52 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=d30ead133df49f67fa29fbcc5cc4be19a2ad6af4 commit d30ead133df49f67fa29fbcc5cc4be19a2ad6af4 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-12-09 15:21:42 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-12-09 17:32:07 +0000 textproc/scdoc: unbreak build with clang 15 In file included from src/string.c:3: include/str.h:10:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] struct str *str_create(); ^ void src/string.c:15:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] struct str *str_create() { ^ void PR: 268277 Reported by: antoine (via bug 265425 exp-run) --- textproc/scdoc/files/patch-clang15 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/textproc/scdoc/files/patch-clang15 b/textproc/scdoc/files/patch-clang15 new file mode 100644 index 000000000000..8dd4a4a5e6f8 --- /dev/null +++ b/textproc/scdoc/files/patch-clang15 @@ -0,0 +1,24 @@ +https://lists.sr.ht/~sircmpwn/public-inbox/patches/37432 + +--- include/str.h.orig 2021-11-13 08:04:45 UTC ++++ include/str.h +@@ -7,7 +7,7 @@ struct str { + size_t len, size; + }; + +-struct str *str_create(); ++struct str *str_create(void); + void str_free(struct str *str); + void str_reset(struct str *str); + int str_append_ch(struct str *str, uint32_t ch); +--- src/string.c.orig 2021-11-13 08:04:45 UTC ++++ src/string.c +@@ -12,7 +12,7 @@ static void ensure_capacity(struct str *str, size_t le + } + } + +-struct str *str_create() { ++struct str *str_create(void) { + struct str *str = xcalloc(1, sizeof(struct str)); + str->str = xcalloc(16, 1); + str->size = 16;