forked from huawei/openGauss-server
delete redefine PG_USED_FOR_ASSERTS_ONLY
Signed-off-by: xiliu <xiliu_h@163.com>
This commit is contained in:
parent
aa8a1715c3
commit
9b6ccd24cc
|
|
@ -112,24 +112,6 @@
|
|||
#define dngettext(d, s, p, n) ((n) == 1 ? (s) : (p))
|
||||
#endif
|
||||
|
||||
/* only GCC supports the unused attribute */
|
||||
#ifdef __GNUC__
|
||||
#define pg_attribute_unused() __attribute__((unused))
|
||||
#else
|
||||
#define pg_attribute_unused()
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Append PG_USED_FOR_ASSERTS_ONLY to definitions of variables that are only
|
||||
* used in assert-enabled builds, to avoid compiler warnings about unused
|
||||
* variables in assert-disabled builds.
|
||||
*/
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
#define PG_USED_FOR_ASSERTS_ONLY
|
||||
#else
|
||||
#define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused()
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Use this to mark string constants as needing translation at some later
|
||||
* time, rather than immediately. This is useful for cases where you need
|
||||
|
|
|
|||
Loading…
Reference in New Issue