unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem report #86
@ 2006-07-02  4:13 Dan Nicolaescu
  2006-07-03 13:22 ` Kim F. Storm
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Nicolaescu @ 2006-07-02  4:13 UTC (permalink / raw)



This appeared around June 12th. 
The warning seems correct to me. Does anybody know what is the right
way to fix this? 


CID: 86
Checker: DEADCODE (help)
File: base/src/emacs/src/dispnew.c
Function: sit_for
Description: Conditional "sec >= 0"

6488         /* This is just like wait_reading_process_output, except
that
6489       it does the redisplay.
6490       
6491          It's also much like Fsit_for, except that it can be used
for
6492       waiting for input as well.  */
6493       
6494       Lisp_Object
6495       sit_for (sec, usec, reading, display, initial_display)
6496            int sec, usec, reading, display, initial_display;
6497            {

Event dead_error_line: Cannot reach this line of code
Event dead_error_condition: On this path, the condition "sec == 0"
could not be true
Event at_most: After this line, the value of "sec" is at most -1
Event new_values: Conditional "sec >= 0"
Also see events: [dead_error_condition][at_most][new_values]

6498       int preempt = (sec >= 0) || (sec == 0 && usec >= 0);
6499       
6500         swallow_events (display);
6501         

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem report #86
  2006-07-02  4:13 Problem report #86 Dan Nicolaescu
@ 2006-07-03 13:22 ` Kim F. Storm
  2006-07-05  6:14   ` Dan Nicolaescu
  0 siblings, 1 reply; 3+ messages in thread
From: Kim F. Storm @ 2006-07-03 13:22 UTC (permalink / raw)
  Cc: emacs-devel

Dan Nicolaescu <dann@ics.uci.edu> writes:

> This appeared around June 12th. 
> The warning seems correct to me. Does anybody know what is the right
> way to fix this? 

I installed a fix.

>
>
> CID: 86
> Checker: DEADCODE (help)
> File: base/src/emacs/src/dispnew.c
> Function: sit_for
> Description: Conditional "sec >= 0"
>
> 6488         /* This is just like wait_reading_process_output, except
> that
> 6489       it does the redisplay.
> 6490       
> 6491          It's also much like Fsit_for, except that it can be used
> for
> 6492       waiting for input as well.  */
> 6493       
> 6494       Lisp_Object
> 6495       sit_for (sec, usec, reading, display, initial_display)
> 6496            int sec, usec, reading, display, initial_display;
> 6497            {
>
> Event dead_error_line: Cannot reach this line of code
> Event dead_error_condition: On this path, the condition "sec == 0"
> could not be true
> Event at_most: After this line, the value of "sec" is at most -1
> Event new_values: Conditional "sec >= 0"
> Also see events: [dead_error_condition][at_most][new_values]
>
> 6498       int preempt = (sec >= 0) || (sec == 0 && usec >= 0);
> 6499       
> 6500         swallow_events (display);
> 6501         

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem report #86
  2006-07-03 13:22 ` Kim F. Storm
@ 2006-07-05  6:14   ` Dan Nicolaescu
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2006-07-05  6:14 UTC (permalink / raw)
  Cc: emacs-devel

storm@cua.dk (Kim F. Storm) writes:

  > Dan Nicolaescu <dann@ics.uci.edu> writes:
  > 
  > > This appeared around June 12th. 
  > > The warning seems correct to me. Does anybody know what is the right
  > > way to fix this? 
  > 
  > I installed a fix.

Thanks!

This was the last problem report that was unresolved. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-05  6:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02  4:13 Problem report #86 Dan Nicolaescu
2006-07-03 13:22 ` Kim F. Storm
2006-07-05  6:14   ` Dan Nicolaescu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).