summaryrefslogtreecommitdiff
path: root/src/include/pg_config_manual.h
diff options
context:
space:
mode:
authorNoah Misch2014-11-23 14:34:03 +0000
committerNoah Misch2014-11-23 14:34:03 +0000
commitb779168ffe330d137b8b4329a7710c8bf1f7e661 (patch)
tree37c491a99621f59e83bd9fc6c4a13190ae2575ff /src/include/pg_config_manual.h
parentb62f94c60386796fd88256c5b7b1e8301c345166 (diff)
Detect PG_PRINTF_ATTRIBUTE automatically.
This eliminates gobs of "unrecognized format function type" warnings under MinGW compilers predating GCC 4.4.
Diffstat (limited to 'src/include/pg_config_manual.h')
-rw-r--r--src/include/pg_config_manual.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index 265dae064ef..b82f0f70bda 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -188,22 +188,6 @@
#define MAX_RANDOM_VALUE (0x7FFFFFFF)
/*
- * Set the format style used by gcc to check printf type functions. We really
- * want the "gnu_printf" style set, which includes what glibc uses, such
- * as %m for error strings and %lld for 64 bit long longs. But not all gcc
- * compilers are known to support it, so we just use "printf" which all
- * gcc versions alive are known to support, except on Windows where
- * using "gnu_printf" style makes a dramatic difference. Maybe someday
- * we'll have a configure test for this, if we ever discover use of more
- * variants to be necessary.
- */
-#ifdef WIN32
-#define PG_PRINTF_ATTRIBUTE gnu_printf
-#else
-#define PG_PRINTF_ATTRIBUTE printf
-#endif
-
-/*
* On PPC machines, decide whether to use the mutex hint bit in LWARX
* instructions. Setting the hint bit will slightly improve spinlock
* performance on POWER6 and later machines, but does nothing before that,