aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpy_elog.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-08-24 10:41:45 -0700
committerAndres Freund <andres@anarazel.de>2018-08-24 10:41:45 -0700
commit8ecdefc261abbd35d6280cdd8fd749e83c3fd199 (patch)
tree3c10a717339808e8741c05dca6796d2a614dd1e1 /src/pl/plpython/plpy_elog.h
parentcb92520563834577d3afbbedcc0df4ee0aac3445 (diff)
downloadpostgresql-8ecdefc261abbd35d6280cdd8fd749e83c3fd199.tar.gz
postgresql-8ecdefc261abbd35d6280cdd8fd749e83c3fd199.zip
Remove test for VA_ARGS, implied by C99.
This simplifies logic / reduces duplication in a few headers. Author: Andres Freund Discussion: https://postgr.es/m/97d4b165-192d-3605-749c-f614a0c4e783@2ndquadrant.com
Diffstat (limited to 'src/pl/plpython/plpy_elog.h')
-rw-r--r--src/pl/plpython/plpy_elog.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pl/plpython/plpy_elog.h b/src/pl/plpython/plpy_elog.h
index e4b30c3cca1..b56ac412476 100644
--- a/src/pl/plpython/plpy_elog.h
+++ b/src/pl/plpython/plpy_elog.h
@@ -15,7 +15,6 @@ extern PyObject *PLy_exc_spi_error;
*
* See comments at elog() about the compiler hinting.
*/
-#ifdef HAVE__VA_ARGS
#ifdef HAVE__BUILTIN_CONSTANT_P
#define PLy_elog(elevel, ...) \
do { \
@@ -32,9 +31,6 @@ extern PyObject *PLy_exc_spi_error;
pg_unreachable(); \
} while(0)
#endif /* HAVE__BUILTIN_CONSTANT_P */
-#else /* !HAVE__VA_ARGS */
-#define PLy_elog PLy_elog_impl
-#endif /* HAVE__VA_ARGS */
extern void PLy_elog_impl(int elevel, const char *fmt,...) pg_attribute_printf(2, 3);