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

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

 



Hi!

On Sat, Jul 22, 2023 at 02:03:24PM -0400, James K. Lowden wrote:
> But, if it's used, shouldn't it be possible to quell the warning
> without wrapping the line in pragmas?  

	if (some_func_delared_with_that_attr(some_args)) {
		// We can ignore the return value here, because
		// this is a very special case because of A, B,
		// and C.
	}

It is *good* that there is no cryptic and easily overlooked trick to
quench issuing that warning.  Source text is first and foremost for the
human reader, _not_ for the compiler!


Segher



[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