Build failure with recent gcc

Open Beginner friendly
#432 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c
Domain
build-system

Research direction

Start in ios_webkit_debug_proxy.c at iwdp_get_content_type around line 1974 and reproduce the failure with gcc 15.2.1. Review the reported const-qualification diagnostic and verify the project builds successfully with warnings treated as errors.

Written by the indexing model from the issue text.

Description

Hello,

Version 1.9.2 fails to build with gcc version 15.2.1 20260209 (GCC) with following error:

ios_webkit_debug_proxy.c: In function ‘iwdp_get_content_type’:
ios_webkit_debug_proxy.c:1974:18: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
 1974 |     char *fext = strrchr(path, '.');
      |                  ^~~~~~~
Dominant language
C
Stars
6.2k
Forks
482
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/ios-webkit-debug-proxy

All issues in google/ios-webkit-debug-proxy

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.