This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add check_result attribute


Jason Merrill <jason@redhat.com> writes:

>> These are awfully verbose.  Suggest just "return value of \"%D\" not used"
>> in both cases
>
> The purpose of the "declared..." bit is to tell the user that this warning
> was requested in the declaration of the function, it's not just the
> compiler trying to enforce some arbitrary coding style.

I understood that, but I think it's unnecessary.

>> -- and please make both of them include the name of the function whose
>> result is being ignored.
>
> The first one does, the second can't.

Why can't it?

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]