nessage.txt
authorDanny Smith <dannysmith@users.sourceforge.net>
Sun, 23 Nov 2008 07:02:22 +0000 (07:02 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Sun, 23 Nov 2008 07:02:22 +0000 (07:02 +0000)
From-SVN: r142131

libgfortran/ChangeLog
libgfortran/libgfortran.h

index 7a176ee..353b884 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-22  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * libgfortran.h (__mingw_snprintf): Declare with gnu_printf
+       format attribute.
+
+
 2008-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR libfortran/38225
index d1a7df9..aaa4667 100644 (file)
@@ -113,7 +113,7 @@ typedef off_t gfc_offset;
    __mingw_snprintf(), because the mingw headers currently don't have one.  */
 #if HAVE_MINGW_SNPRINTF
 extern int __mingw_snprintf (char *, size_t, const char *, ...)
-     __attribute__ ((format (printf, 3, 4)));
+     __attribute__ ((format (gnu_printf, 3, 4)));
 #undef snprintf
 #define snprintf __mingw_snprintf
 #endif