Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
410ed5c3
Commit
410ed5c3
authored
Jan 16, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fileio.c (make_temp_name): Remove unreachable code.
parent
97be3ce3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
src/ChangeLog
src/ChangeLog
+2
-0
src/fileio.c
src/fileio.c
+4
-9
No files found.
src/ChangeLog
View file @
410ed5c3
2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
* fileio.c (make_temp_name): Remove unreachable code.
* fontset.c (free_realized_fontset): Mark unreachable code with if (0).
Previously it was marked by preceding it with "return;", but
Sun cc complains about this.
...
...
src/fileio.c
View file @
410ed5c3
...
...
@@ -740,17 +740,13 @@ make_temp_name (Lisp_Object prefix, int base64_p)
as bad as (and in many cases worse than) throwing the
error, or to ignore the error, which will likely result
in looping through 225307 stat's, which is not only
dog-slow, but also useless since
it will fallback to
the errow below,
anyway. */
dog-slow, but also useless since
eventually nil would
have to be returned
anyway. */
report_file_error
(
"Cannot create temporary name for prefix"
,
Fcons
(
prefix
,
Qnil
));
/* not reached */
}
}
error
(
"Cannot create temporary name for prefix `%s'"
,
SDATA
(
prefix
));
return
Qnil
;
}
...
...
@@ -5232,7 +5228,7 @@ auto_save_1 (void)
static
Lisp_Object
do_auto_save_unwind
(
Lisp_Object
arg
)
/* used as unwind-protect function */
{
FILE
*
stream
=
(
FILE
*
)
XSAVE_VALUE
(
arg
)
->
pointer
;
auto_saving
=
0
;
...
...
@@ -5247,7 +5243,7 @@ do_auto_save_unwind (Lisp_Object arg) /* used as unwind-protect function */
static
Lisp_Object
do_auto_save_unwind_1
(
Lisp_Object
value
)
/* used as unwind-protect function */
{
minibuffer_auto_raise
=
XINT
(
value
);
return
Qnil
;
...
...
@@ -5873,4 +5869,3 @@ This includes interactive calls to `delete-file' and
defsubr
(
&
Sunix_sync
);
#endif
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment