Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a clang warning for suspicious string concatentation. #1101

Merged
merged 1 commit into from Sep 11, 2023

Conversation

clalancette
Copy link
Contributor

clang warns when strings are concatenated within array declarations; this can help to catch bugs.

However, in the cases here we actually mean to do string concatenation. Signal this to the compiler by making a separate variable where we do the concatenation, which quiets the clang warning and should have no effect on operation.

clang warns when strings are concatenated within array
declarations; this can help to catch bugs.

However, in the cases here we actually mean to do string
concatenation.  Signal this to the compiler by making a
separate variable where we do the concatenation, which
quiets the clang warning and should have no effect
on operation.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette clalancette merged commit feb775a into rolling Sep 11, 2023
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the clalancette/fix-clang-warnings branch September 11, 2023 16:30
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.

None yet

3 participants