Skip to content

Clang warnings#220

Merged
mdavidsaver merged 3 commits intoepics-base:masterfrom
anjohnson:clang-warnings
Dec 2, 2025
Merged

Clang warnings#220
mdavidsaver merged 3 commits intoepics-base:masterfrom
anjohnson:clang-warnings

Conversation

@anjohnson
Copy link
Member

Cleanup warnings reported by Clang

Comment on lines 138 to +141
char buf[16];
for (size_t i = 0; i < nChannels; i++)
{
sprintf(buf, "test%zu", (i+1));
epicsSnprintf(buf, sizeof(buf), "test%zu", (i+1));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, I would move buf into the same scope as the printf. imo. I think not worth following up on now.

@mdavidsaver mdavidsaver merged commit cb17a29 into epics-base:master Dec 2, 2025
23 of 26 checks passed
@anjohnson anjohnson deleted the clang-warnings branch December 2, 2025 02:57
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