On Fri, 13 Sep 2019, Christian Franke wrote:
...
From 3e729fff4a79bf4887ef7df94bd4502aa22d9852 Mon Sep 17 00:00:00 2001
From: Christian Franke <[email protected]>
Date: Fri, 13 Sep 2019 21:20:19 +0200
Subject: [PATCH 1/2] headers: _FORTIFY_SOURCE: Use __builtin_va_arg_pack()
only if needed.
GCC may report an error if the address of an inline function with
_buildin_va_arg_pack() is used. Keep the old inline functions if
_FORTIFY_SOURCE is disabled.
Hmm, but wouldn't it still report the same error if the address of the
function is used, when _FORTIFY_SOURCE is enabled?
__attribute__((__format__ (ms_printf, 3, 4))) __MINGW_ATTRIB_NONNULL(3)
-int snprintf (char * __restrict__ __stream, size_t __n, const char *
__restrict__ __format, ...)
+int snprintf (char *__stream, size_t __n, const char *__format, ...)
{
Technically, this bit of the patch is a stray change in this context. But
the rest of the patch looks consistent and good in that aspect.
But I'm not sure I follow the exact reason for it quite yet...
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public