]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Silence another gcc 11 warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jan 2021 22:18:23 +0000 (17:18 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jan 2021 22:18:48 +0000 (17:18 -0500)
commitea3164aae4b2d2edfb1dc3bd450bfed86d3266ea
treef26d08144101c5208273f3bbe6dad5920dcf4ed3
parentedb39e321049c7a12abc6bb78df5ee2ccf2e6437
Silence another gcc 11 warning.

Per buildfarm and local experimentation, bleeding-edge gcc isn't
convinced that the MemSet in reorder_function_arguments() is safe.
Shut it up by adding an explicit check that pronargs isn't negative,
and by changing MemSet to memset.  (It appears that either change is
enough to quiet the warning at -O2, but let's do both to be sure.)
src/backend/optimizer/util/clauses.c