hotdoc: fix build with gcc15#446324
Merged
Merged
Conversation
- add patch from merged upstream commit: hotdoc/hotdoc@adf8518 Fixes build failure with gcc15: ``` /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l: In function ‘yylex’: /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:49:10: error: too many arguments to function ‘parse_comment’; expected 0, have 1 49 | "/*" { return parse_comment (comments);} | ^~~~~~~~~~~~~ ~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:37:12: note: declared here 37 | static int parse_comment (); | ^~~~~~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:50:10: error: too many arguments to function ‘parse_define’; expected 0, have 1 50 | {HASH}{SPACE}*"define"{SPACE}* { return parse_define (comments); } | ^~~~~~~~~~~~ ~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:38:12: note: declared here 38 | static int parse_define (); | ^~~~~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l: At top level: /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:80:1: error: conflicting types for ‘parse_define’; have ‘int(PyObject *)’ {aka ‘int(struct _object *)’} 80 | parse_define (PyObject *comments) | ^~~~~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:38:12: note: previous declaration of ‘parse_define’ with type ‘int(void)’ 38 | static int parse_define (); | ^~~~~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:126:1: error: conflicting types for ‘parse_comment’; have ‘int(PyObject *)’ {aka ‘int(struct _object *)’} 126 | parse_comment (PyObject *comments) | ^~~~~~~~~~~~~ /build/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:37:12: note: previous declaration of ‘parse_comment’ with type ‘int(void)’ 37 | static int parse_comment (); | ^~~~~~~~~~~~~ ```
de9a48d to
4b90ae3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hotdoc/hotdoc@adf8518
Fixes build failure with gcc15:
Could not figure out how to test it with gcc15 as is.
But it builds on top of #440456 with this fix and fails otherwise.
Part of fixes for gcc15 update:
#440456
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.