Skip to content

Fix compile warnings on GCC 15 and enable -Werror#37

Open
mcayland wants to merge 6 commits into
openbios:masterfrom
mcayland:fix/compile-warnings
Open

Fix compile warnings on GCC 15 and enable -Werror#37
mcayland wants to merge 6 commits into
openbios:masterfrom
mcayland:fix/compile-warnings

Conversation

@mcayland

Copy link
Copy Markdown
Collaborator

This series fixes up compile warnings on GCC 15 and then enables -Werror to help maintain the quality of the codebase going forward.

With thanks to @lygstate for doing the work updating the TIC handler functions, and for help with testing.

Type all TIC vocabulary funct and ign_func callbacks as void
(*)(tic_param_t), use tic_param_t for tic_bool_hdr_t.pfield, and
type push_source resumption callbacks as void (*)(_PTR).

Fixes: 7ea4e44 ("fixes compiling with gcc 15")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Comment thread toke/scanner.c Outdated
@lygstate

Copy link
Copy Markdown
Contributor

except the nit, other looks good to me

Comment thread toke/stream.c
mcayland added 3 commits June 27, 2026 23:00
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
@mcayland mcayland force-pushed the fix/compile-warnings branch from be18834 to b3fd37f Compare June 27, 2026 22:05
mcayland added 2 commits June 27, 2026 23:19
When attempting to expand shell variables in a source filename, toke currently
executes system() with a shell command to write the expanded filename to a
temporary file created with tmpnam().

Replace the existing logic with a version that uses popen()/pclose() instead
to avoid modern compilers generating a "warning: the use of `tmpnam' is
dangerous, better use `mkstemp'" warning.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This should help capture any future errors earlier during development.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
@mcayland mcayland force-pushed the fix/compile-warnings branch from b3fd37f to 6b5bf5b Compare June 27, 2026 22:20
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

Successfully merging this pull request may close these issues.

2 participants