emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found


From: Jason Rumney
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking.
Date: Tue, 04 Sep 2012 22:26:34 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> --- a/src/doc.c      2012-09-02 16:56:31 +0000
>> +++ b/src/doc.c      2012-09-03 09:22:43 +0000
>> @@ -848,9 +848,10 @@
>>        struct buffer *oldbuf;
>>        ptrdiff_t start_idx;
>>        /* This is for computing the SHADOWS arg for describe_map_tree.  */
>> -      Lisp_Object active_maps = Fcurrent_active_maps (Qnil, Qnil);
>> +      Lisp_Object active_maps;
>>        Lisp_Object earlier_maps;
>>  
>> +      active_maps = Fcurrent_active_maps (Qnil, Qnil);
>>        changed = 1;
>>        strp += 2;            /* skip \{ or \< */
>>        start = strp;
>
> What problems did static checking find in this (and other similar)
> fragment?

It's not valid C89 is it?  You can't declare variables after making a
function call within the same scope before C99, though few compilers
would trip on this with default compilation flags.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]