Remove unnecessary AssertMacro() to suppress gcc 4.6 compiler warning.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7c19e0446c049dd41aed62fa398cd809017adf5e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-10-18T21:39:14Z
Releases: 9.2.0
Remove unnecessary AssertMacro() to suppress gcc 4.6 compiler warning.

There's no particular value in doing AssertMacro((tup) != NULL) in front
of code that's certain to crash anyway if tup is NULL.  And if "tup" is
actually the address of a local variable, gcc 4.6 whinges about it.  That's
arguably pretty broken on gcc's part, but we might as well remove the
useless test to silence the warnings.  This gets rid of all the -Waddress
warnings in the backend; there are some in libpq and psql that are a bit
harder to avoid.

Files

PathChange+/−
src/include/access/htup.h modified +1 −4