Skip to content

build: constify strchr()/memchr() results#432

Closed
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:moreconst
Closed

build: constify strchr()/memchr() results#432
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:moreconst

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Mar 1, 2026

To fix building with glibc-2.43.
(also seen with gcc 16 on Fedora rawhide/f44)

Also:

  • scope a variable while there.
  • fix altering the const format buffer on bad syntax.

Reported-by: Gustavo Costa
Fixes #430
Reported-by: Michael Ablassmeier
Fixes #431

vszakats added 4 commits March 1, 2026 12:06
To fix building with glibc-2.43.
(also seen with gcc 16 on Fedora rawhide/f44)

Also:
- scope a variable while there.
- fix altering the const format buffer on bad syntax.

Reported-by: Gustavo Costa
Fixes curl#430
Reported-by: Michael Ablassmeier
Fixes curl#431
@vszakats vszakats changed the title build: constify strchr() results build: constify strchr()/memchr() results Mar 1, 2026
@vszakats vszakats closed this in 6e1479c Mar 2, 2026
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.

Fails to build with glibc-2.43 Compilation fails with GCC 16: discarded-qualifiers

1 participant