Control: tags -1 patch

On Wed, Jul 03, 2024 at 12:25:19PM +0000, Matthias Klose wrote:
> [...]
> The package fails to build in a test rebuild on at least amd64 with
> gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
> severity of this report will be raised before the trixie release.
> 
> The full build log can be found at:
> http://qa-logs.debian.net/2024/07/01/discount_2.2.7-2_unstable_gccexp.log
> The last lines of the build log are at the end of this report.
> [...]
> main.c: In function ‘main’:
> main.c:311:36: error: passing argument 2 of ‘mkd_e_code_format’ from 
> incompatible pointer type [-Wincompatible-pointer-types]
>   311 |             mkd_e_code_format(doc, external_codefmt);
>       |                                    ^~~~~~~~~~~~~~~~
>       |                                    |
>       |                                    char * (*)(char *, int,  char *)
> In file included from main.c:12:
> ./mkdio.h:71:31: note: expected ‘mkd_callback_t’ {aka ‘char * (*)(const char 
> *, const int,  void *)’} but argument is of type ‘char * (*)(char *, int,  
> char *)’
>    71 | void mkd_e_code_format(void*, mkd_callback_t);
>       |                               ^~~~~~~~~~~~~~
> make[1]: *** [Makefile:128: main.o] Error 1
> [...]

Just confirmed: the patch at
<https://gitweb.gentoo.org/repo/gentoo.git/tree/app-text/discount/files/discount-2.2.7c-C99-fix.patch>
or <https://github.com/Orc/discount/issues/283> (apparently not heeded
by upstream) fixes this.

HTH,
Flo

Attachment: signature.asc
Description: PGP signature

Reply via email to