[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 r117455: Fix compilation warnings about snprintf
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-24 r117455: Fix compilation warnings about snprintf in the MSDOS build. |
Date: |
Sat, 23 Aug 2014 08:23:25 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117455
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: emacs-24
timestamp: Sat 2014-08-23 11:22:46 +0300
message:
Fix compilation warnings about snprintf in the MSDOS build.
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
<address@hidden>.
modified:
msdos/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1535
msdos/sed2v2.inp sed2v2.inp-20091113204419-o5vbwnq5f7feedwu-2392
=== modified file 'msdos/ChangeLog'
--- a/msdos/ChangeLog 2014-04-16 13:27:28 +0000
+++ b/msdos/ChangeLog 2014-08-23 08:22:46 +0000
@@ -1,3 +1,10 @@
+2014-08-23 Eli Zaretskii <address@hidden>
+
+ * 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
+ <address@hidden>.
+
2014-04-16 Eli Zaretskii <address@hidden>
* sedlisp.inp:
=== modified file 'msdos/sed2v2.inp'
--- a/msdos/sed2v2.inp 2014-08-14 19:56:31 +0000
+++ b/msdos/sed2v2.inp 2014-08-23 08:22:46 +0000
@@ -131,6 +131,8 @@
#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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 r117455: Fix compilation warnings about snprintf in the MSDOS build.,
Eli Zaretskii <=