Skip to content

Fix build for gcc-15/16#854

Merged
uyjulian merged 1 commit into
ps2dev:masterfrom
Pritchy96:master
May 24, 2026
Merged

Fix build for gcc-15/16#854
uyjulian merged 1 commit into
ps2dev:masterfrom
Pritchy96:master

Conversation

@Pritchy96
Copy link
Copy Markdown
Contributor

@Pritchy96 Pritchy96 commented May 24, 2026

GCC-15/16 was still failing after #852, with a similar error to the one originally raised (#851):

make all
...
cc -O2 -Wall -Werror  -Isrc/ -Isrc/include -Iinclude/   -Isrc/ -Isrc/include -Iinclude/ -c src/anaarg.c -o obj/anaarg.o
src/anaarg.c: In function ‘analize_arguments’:
src/anaarg.c:131:60: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  131 |                                                         cp = strchr(opttable->option, ':');
      |                                                            ^
cc1: all warnings being treated as errors

This PR fixes that and GCC-15/16 now compiles cleanly.

@uyjulian
Copy link
Copy Markdown
Member

Lgtm

@uyjulian uyjulian merged commit f4f80c0 into ps2dev:master May 24, 2026
13 checks passed
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