Skip to content

Add __printf attribute to homa_metric_append - #125

Open
randomizedcoder wants to merge 1 commit into
PlatformLab:mainfrom
randomizedcoder:fix/metric-append-printf
Open

randomizedcoder wants to merge 1 commit into
PlatformLab:mainfrom
randomizedcoder:fix/metric-append-printf

Conversation

@randomizedcoder

Copy link
Copy Markdown
Contributor

Lets the compiler check every caller's format string (none are wrong today) and clears gcc W=1's -Wsuggest-attribute=format for homa_metrics.c. Uses the same suffix style as homa_snprintf/unit_log_printf.

No test: attribute only. Unit tests: 862/862 pass.

🤖 Generated with Claude Code

* Lets the compiler check the format strings passed by every caller
  (none are wrong today) and clears gcc W=1's
  -Wsuggest-attribute=format warning in homa_metrics.c.

Co-Authored-By: Claude Opus 5.5 <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