Compiler warning

Started by Bruce Momjianover 5 years ago2 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

I see a compiler warning on git master:

sharedfileset.c:288:8: warning: variable ‘found’ set but not used [-Wunused-but-set-variable]

--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com

The usefulness of a cup is in its emptiness, Bruce Lee

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#1)
Re: Compiler warning

Bruce Momjian <bruce@momjian.us> writes:

I see a compiler warning on git master:
sharedfileset.c:288:8: warning: variable ‘found’ set but not used [-Wunused-but-set-variable]

Could get rid of the variable entirely: change the "break" to "return"
and then the final Assert can be "Assert(false)".

regards, tom lane