[Bug c/94370] New: double negation in diagnostic

roland.illig at gmx dot de gcc-bugzilla@gcc.gnu.org
Fri Mar 27 19:49:39 GMT 2020


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"


More information about the Gcc-bugs mailing list