]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warnings about snprintf in the MSDOS build.
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Aug 2014 08:22:46 +0000 (11:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Aug 2014 08:22:46 +0000 (11:22 +0300)
 msdos/sed2v2.inp [DJGPP <= 2.03]: Add a prototype for snprintf, to
 avoid compilation warning from newer GCC versions that have
 snprintf as a built-in.  Reported by Juan Manuel Guerrero
 <juan.guerrero@gmx.de>.

msdos/ChangeLog
msdos/sed2v2.inp

index f1d6c322bc263809942d8e67cc8dc80b49a756ba..c40d7295cbd88c639d6d72710963ec6229213ae8 100644 (file)
@@ -1,3 +1,10 @@
+2014-08-23  Eli Zaretskii  <eliz@gnu.org>
+
+       * sed2v2.inp [DJGPP <= 2.03]: Add a prototype for snprintf, to
+       avoid compilation warning from newer GCC versions that have
+       snprintf as a built-in.  Reported by Juan Manuel Guerrero
+       <juan.guerrero@gmx.de>.
+
 2014-04-16  Eli Zaretskii  <eliz@gnu.org>
 
        * sedlisp.inp:
index d5211fdfdbf1a168971733b924d659f9f0d39ade..ed14b12ca24cfc5d9380c8e90080f333fda8acd5 100644 (file)
@@ -131,6 +131,8 @@ s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/
 #define HAVE_SNPRINTF 1\
 #else\
 #undef HAVE_SNPRINTF\
+#include <sys/types.h>\
+extern int snprintf (char *__restrict, size_t, const char *__restrict, ...);\
 #endif
 s/^#undef PENDING_OUTPUT_N_BYTES *$/#define PENDING_OUTPUT_N_BYTES fp->_ptr - fp->_base/