mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 551879 - TM: remove shell/js.cpp and editline.c warnings. r=gal.
This commit is contained in:
parent
1f8943a00a
commit
64a20b3120
@ -169,7 +169,10 @@ STATIC void
|
||||
TTYflush()
|
||||
{
|
||||
if (ScreenCount) {
|
||||
(void)write(1, Screen, ScreenCount);
|
||||
/* Dummy assignment avoids GCC warning on
|
||||
* "attribute warn_unused_result" */
|
||||
ssize_t dummy = write(1, Screen, ScreenCount);
|
||||
(void)dummy;
|
||||
ScreenCount = 0;
|
||||
}
|
||||
}
|
||||
|
@ -3534,7 +3534,9 @@ CancelExecution(JSRuntime *rt)
|
||||
static const char msg[] = "Script runs for too long, terminating.\n";
|
||||
#if defined(XP_UNIX) && !defined(JS_THREADSAFE)
|
||||
/* It is not safe to call fputs from signals. */
|
||||
write(2, msg, sizeof(msg) - 1);
|
||||
/* Dummy assignment avoids GCC warning on "attribute warn_unused_result" */
|
||||
ssize_t dummy = write(2, msg, sizeof(msg) - 1);
|
||||
(void)dummy;
|
||||
#else
|
||||
fputs(msg, stderr);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user