Re: Why doesn't a cast quell a warning?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2023-07-23 02:03, James K. Lowden 写道:
I'm not myself convinced that  -Wunused-result is all that useful.
But, if it's used, shouldn't it be possible to quell the warning
without wrapping the line in pragmas?

This warning can be silenced like this:

   (void)! asprintf (&display_msg, "%s %s", p, $2);


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux