Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discount 2.2.7d is not gcc 14 ready #247

Closed
kovmir opened this issue Oct 3, 2024 · 1 comment
Closed

discount 2.2.7d is not gcc 14 ready #247

kovmir opened this issue Oct 3, 2024 · 1 comment

Comments

@kovmir
Copy link

kovmir commented Oct 3, 2024

discount 2.2.7d slackbuild is not gcc 14 ready:

cc -Wno-return-type -Wno-implicit-int -I. -g -c main.c
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: *** [Makefile:127: main.o] Error 1

Here is a fix patch.

@Ponce
Copy link
Owner

Ponce commented Oct 25, 2024

sorry, just saw this: pushed in a dedicated branch, thanks!

@Ponce Ponce closed this as completed Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants