Avoid compiler warning in non-assert builds
authorAmit Langote
Thu, 26 Oct 2023 08:12:24 +0000 (17:12 +0900)
committerAmit Langote
Thu, 26 Oct 2023 08:29:32 +0000 (17:29 +0900)
commit2bf99b48ded8288fa1c5f53a0c3581059a112d0c
treeb8e70e2f0acdb4f44d823cc10e12f581ac840a04
parent178ee1d858d89f6d86f42a84bd4b8014ddfa7245
Avoid compiler warning in non-assert builds

After 01575ad788e3, expand_single_inheritance_child()'s parentOID
variable is read only in an Assert, provoking a compiler warning in
non-assert builds.  Fix that by marking the variable with
PG_USED_FOR_ASSERTS_ONLY.

Per report and suggestion from David Rowley

Discussion: https://postgr.es/m/CAApHDvpjA_8Wxu4DCTRVAvPxC9atwMe6N%2ByvrcGsgb7mrfdpJA%40mail.gmail.com
src/backend/optimizer/util/inherit.c