https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94370
Bug ID: 94370
Summary: double negation in diagnostic
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: roland.illig at gmx dot de
Target Milestone: ---
>From c-typeck.c:
> warning_at (input_location, OPT_Wattributes,
> "%qs attribute cannot be applied to a function that "
> "does not take variable arguments", "format");
"cannot ... does not" is a double negation, which for most people is difficult
to understand. For situations like these, there is the word "only":
"%qs attribute can only be applied to a function that "
"takes variable arguments"