[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113470: * lread.c (Fload): Avoid initialization onl
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] trunk r113470: * lread.c (Fload): Avoid initialization only when lint checking. |
Date: |
Sat, 20 Jul 2013 14:21:29 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113470
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2013-07-20 07:21:25 -0700
message:
* lread.c (Fload): Avoid initialization only when lint checking.
Mention that it's needed only for older GCCs.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/lread.c lread.c-20091113204419-o5vbwnq5f7feedwu-266
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-07-20 11:51:53 +0000
+++ b/src/ChangeLog 2013-07-20 14:21:25 +0000
@@ -1,3 +1,8 @@
+2013-07-20 Paul Eggert <address@hidden>
+
+ * lread.c (Fload): Avoid initialization only when lint checking.
+ Mention that it's needed only for older GCCs.
+
2013-07-20 Kenichi Handa <address@hidden>
* coding.c (CODING_ISO_FLAG_LEVEL_4): New macro.
=== modified file 'src/lread.c'
--- a/src/lread.c 2013-07-20 08:25:46 +0000
+++ b/src/lread.c 2013-07-20 14:21:25 +0000
@@ -1044,7 +1044,7 @@
{
FILE *stream;
int fd;
- int fd_index = 0;
+ int fd_index;
ptrdiff_t count = SPECPDL_INDEX ();
struct gcpro gcpro1, gcpro2, gcpro3;
Lisp_Object found, efound, hist_file_name;
@@ -1175,7 +1175,12 @@
#endif
}
- if (fd >= 0)
+ if (fd < 0)
+ {
+ /* Pacify older GCC with --enable-gcc-warnings. */
+ IF_LINT (fd_index = 0);
+ }
+ else
{
fd_index = SPECPDL_INDEX ();
record_unwind_protect_int (close_file_unwind, fd);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113470: * lread.c (Fload): Avoid initialization only when lint checking.,
Paul Eggert <=