commit 374b1909f9c9aeb20de62225a55d2a35fc3f1b65
parent cd6b50055aa9483d85c60503bab2f98d7db53902
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Mon, 6 Jul 2026 16:03:41 +0200
autoinit_funcs: compacted warning messages
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/incl_priv/autoinit_funcs.h b/src/incl_priv/autoinit_funcs.h
@@ -97,7 +97,7 @@
* The header version number in packed BCD form.
* (For example, version 1.9.30-1 would be 0x01093001)
*/
-#define AIF_VERSION 0x02000300
+#define AIF_VERSION 0x02000301
/* Define AUTOINIT_FUNCS_NO_WARNINGS to disable all custom warnings
in this header */
@@ -540,7 +540,7 @@
this header to abort compilation if automatic initialisers/deinitialisers
are not supported */
# ifdef AUTOINIT_FUNCS_EMIT_ERROR_IF_NOT_SUPPORTED
-#error User-defined initialiser and deinitialiser functions are not supported
+#error User-defined initialiser and deinitialiser functions not supported
# endif /* AUTOINIT_FUNCS_EMIT_ERROR_IF_NOT_SUPPORTED */
# if defined(__SUNPRO_C) && (defined(sun) || defined(__sun)) \
@@ -552,7 +552,7 @@
The form is "void func_name(void)". */
# define AIF_PRAGMA_FINI_SUPPORTED 1
# if ! defined(AUTOINIT_FUNCS_NO_WARNINGS_SUNPRO_C)
-#warning The compiler supports "#pragma init(func1)" and "#pragma fini(func2)"
+#warning Compiler supports "#pragma init(func)" and "#pragma fini(func)"
#warning Use "pragma" to set initialiser and deinitialiser functions
# endif
# endif