Skip to content

fix: add -Wno-string-compare for macOS compatibility#18

Open
pushnov-i wants to merge 1 commit into
c-koans:masterfrom
pushnov-i:fix/macos-string-compare-warning
Open

fix: add -Wno-string-compare for macOS compatibility#18
pushnov-i wants to merge 1 commit into
c-koans:masterfrom
pushnov-i:fix/macos-string-compare-warning

Conversation

@pushnov-i
Copy link
Copy Markdown

Summary

  • Apple Clang (which gcc aliases to on macOS) emits -Wstring-compare warnings for string literal comparisons. Combined with -Werror, this causes the build to fail on macOS out of the box.
  • Adds -Wno-string-compare to CFLAGS to suppress this warning.

Test plan

  • Verified make clean && make all succeeds on macOS (Apple Clang)
  • Confirm no regression on Linux/GCC

🤖 Generated with Claude Code

Apple Clang treats string literal comparisons as warnings, which
combined with -Werror causes build failures on macOS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant