Reject compiler switches resulting in warnings
When checking compiler switches during configure, reject the ones that result in a compiler warning, this for example happens when building with clang which throw a warning on unknown warning options when testing gcc switches: warning: unknown warning option '-Wno-unused-but-set-variable'; This is a partial port of 44404f39 from upstream, see original commitmessage below. commit 44404f39 Author: Tom Lane <tgl@sss.pgh.pa.us> Date: Thu May 26 17:29:33 2011 -0400 Adjust configure to use "+Olibmerrno" with HP-UX C compiler, if possible. This is reported to be necessary on some versions of that OS. In service of this, cause PGAC_PROG_CC_CFLAGS_OPT to reject switches that result in compiler warnings, since on yet other versions of that OS, the switch does nothing except provoke a warning. Report and patch by Ibrar Ahmed, further tweaking by me.
Showing
想要评论请 注册 或 登录