nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] slang warning


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] slang warning
Date: Fri, 4 Oct 2002 10:17:09 -0700 (PDT)

It appears to be a minor bug in slang's ncurses emulation.
According to both the prototype in ncurses.h and the
manpage for waddnstr, the third argument is supposed to be
a const char *, but slang's macro for waddnstr makes the
third argument a char * instead.

ncurses.h:
extern int waddnstr(WINDOW *,const char *const,int);    /* implemented */

mvwaddnstr manpage:
int waddnstr(WINDOW *win, const char *str, int n);

slcurses.h:
extern int SLcurses_waddnstr (SLcurses_Window_Type *, char *, int);
#define waddnstr                SLcurses_waddnstr


_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!

_____________________________________________________________
Select your own custom email address for FREE! Get address@hidden w/No Ads, 
6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
--- Begin Message --- Subject: [Nano-devel] slang warning Date: Thu, 3 Oct 2002 10:51:27 +0200 User-agent: Mutt/1.4i
Hi again,

During the slang compile I'm seeing:

../winio.c: In function `nanoget_repaint':
../winio.c:186: warning: passing arg 2 of `SLcurses_waddnstr' discards 
qualifiers from pointer target type
../winio.c:189: warning: passing arg 2 of `SLcurses_waddnstr' discards 
qualifiers from pointer target type
[...]

Using gcc 2.95.

Jordi
-- 
Jordi Mallach PĂ©rez  --  Debian developer     http://www.debian.org/
address@hidden     address@hidden     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/

Attachment: pgpkYoyMvmBd3.pgp
Description: PGP signature


--- End Message ---

reply via email to

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