zsh-users
 help / color / mirror / code / Atom feed
* error?
@ 2015-10-26 15:28 Ray Andrews
  2015-10-26 17:54 ` error? Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Ray Andrews @ 2015-10-26 15:28 UTC (permalink / raw)
  To: Zsh Users

I just finished creating a back of my whole install, then did a 
configure and make in the backup and got this:


    zle_thingy.c:667:1: warning: ‘zle_usable’ was used with no prototype
    before its definition [-Wmissing-prototypes]
      zle_usable()
      ^
    zle_thingy.c: In function ‘bin_zle_flags’:
    zle_thingy.c:663:1: warning: control reaches end of non-void
    function [-Wreturn-type]
      }
      ^

... which was partially highlighted in green, so it seemed significant.  
However on doing a 'git pull' and 'make' again, the message was absent 
so that might have been some transitory glitch. There doesn't seem to be 
anything wrong.


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

* Re: error?
  2015-10-26 15:28 error? Ray Andrews
@ 2015-10-26 17:54 ` Peter Stephenson
  2015-10-26 18:11   ` error? Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2015-10-26 17:54 UTC (permalink / raw)
  To: Zsh Users

On Mon, 26 Oct 2015 08:28:42 -0700
Ray Andrews <rayandrews@eastlink.ca> wrote:
> I just finished creating a back of my whole install, then did a 
> configure and make in the backup and got this:
> 
> 
>     zle_thingy.c:667:1: warning: ‘zle_usable’ was used with no prototype

That is, in fact, to use the technical description, wrong.

pws

diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index c6ef8e6..271fd8e 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -626,7 +626,7 @@ bin_zle_complete(char *name, char **args, UNUSED(Options ops), UNUSED(char func)
 
 /**/
 static int
-zle_usable()
+zle_usable(void)
 {
     return zleactive && !incompctlfunc && !incompfunc
 #if 0


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

* Re: error?
  2015-10-26 17:54 ` error? Peter Stephenson
@ 2015-10-26 18:11   ` Bart Schaefer
  2015-10-26 21:06     ` error? Ray Andrews
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2015-10-26 18:11 UTC (permalink / raw)
  To: Zsh Users

On Oct 26,  5:54pm, Peter Stephenson wrote:
} Subject: Re: error?
}
} On Mon, 26 Oct 2015 08:28:42 -0700
} Ray Andrews <rayandrews@eastlink.ca> wrote:
} > I just finished creating a back of my whole install, then did a 
} > configure and make in the backup and got this:
} > 
} > 
} >     zle_thingy.c:667:1: warning: `zle_usable' was used with no prototype
} 
} That is, in fact, to use the technical description, wrong.

Still, the other error was definitely spurious, and:

Src/Modules/zftp.c:412:zfpipe()
Src/Modules/zftp.c:453:zfunpipe()
Src/Modules/zftp.c:1301:zfendtrans()
Src/Modules/zftp.c:2837:savesession()
Src/Zle/complist.c:502:getcols()
Src/Zle/complist.c:605:initiscol()
Src/Zle/complist.c:1912:singledraw()
Src/Zle/computil.c:188:cd_calc()
Src/Zle/computil.c:239:cd_prep()
Src/Zle/zle_thingy.c:629:zle_usable()
Src/parse.c:533:clear_hdocs()

So unless we're going to stick (void) in everywhere, I think the whole
event was spurious.

(Also this really belongs on -workers.)


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

* Re: error?
  2015-10-26 18:11   ` error? Bart Schaefer
@ 2015-10-26 21:06     ` Ray Andrews
  0 siblings, 0 replies; 4+ messages in thread
From: Ray Andrews @ 2015-10-26 21:06 UTC (permalink / raw)
  To: zsh-users

On 10/26/2015 11:11 AM, Bart Schaefer wrote:
> So unless we're going to stick (void) in everywhere, I think the whole
> event was spurious.

Strange that I've never seen it before. Anyway, if it didn't flash green 
text at me I'd
have let it slide.  Ya get used to some things showing errors that are 
dealt with
latter--fallbacks and such.
>
> (Also this really belongs on -workers.)
>
Not my black ass ;-)


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

end of thread, other threads:[~2015-10-26 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 15:28 error? Ray Andrews
2015-10-26 17:54 ` error? Peter Stephenson
2015-10-26 18:11   ` error? Bart Schaefer
2015-10-26 21:06     ` error? Ray Andrews

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

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).