Skip to content

Fix GCC 15 compatibility warnings#3205

Open
totrytakeoff wants to merge 3 commits intogoogle-deepmind:mainfrom
totrytakeoff:fix-gcc15-warnings
Open

Fix GCC 15 compatibility warnings#3205
totrytakeoff wants to merge 3 commits intogoogle-deepmind:mainfrom
totrytakeoff:fix-gcc15-warnings

Conversation

@totrytakeoff
Copy link
Copy Markdown

  • engine_print.c: change 'char* c' to 'const char* c' since strchr() returns const char*; fixes -Werror=discarded-qualifiers
  • engine_plugin.cc: add bounds check for nattribute to prevent alloc-size overflow; fixes -Walloc-size-larger-than

havess and others added 3 commits March 30, 2026 15:19
- engine_print.c: change 'char* c' to 'const char* c' since strchr()
  returns const char*; fixes -Werror=discarded-qualifiers
- engine_plugin.cc: add bounds check for nattribute to prevent
  alloc-size overflow; fixes -Walloc-size-larger-than
@google-cla
Copy link
Copy Markdown

google-cla bot commented Mar 31, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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