summaryrefslogtreecommitdiff
path: root/libgfortran/runtime/stop.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/runtime/stop.c')
-rw-r--r--libgfortran/runtime/stop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libgfortran/runtime/stop.c b/libgfortran/runtime/stop.c
index 4c3a0f99c89..912dd54fbf7 100644
--- a/libgfortran/runtime/stop.c
+++ b/libgfortran/runtime/stop.c
@@ -67,8 +67,7 @@ stop_string (const char *string, GFC_INTEGER_4 len)
if (string)
{
estr_write ("STOP ");
- ssize_t w = write (STDERR_FILENO, string, len);
- (void) sizeof (w); /* Avoid compiler warning about not using w. */
+ (void) write (STDERR_FILENO, string, len);
estr_write ("\n");
}
exit (0);
@@ -88,8 +87,7 @@ void
error_stop_string (const char *string, GFC_INTEGER_4 len)
{
estr_write ("ERROR STOP ");
- ssize_t w = write (STDERR_FILENO, string, len);
- (void) sizeof (w); /* Avoid compiler warning about not using w. */
+ (void) write (STDERR_FILENO, string, len);
estr_write ("\n");
exit (1);