bug-ncurses
[Top][All Lists]
Advanced

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

Re: gcc3.4 warnings


From: Stanislav Ievlev
Subject: Re: gcc3.4 warnings
Date: Mon, 17 Jan 2005 17:57:45 +0300

On Mon, Jan 17, 2005 at 11:47:16PM +0900, Eungkyu Song wrote:
> 
> try l.c not l.cc
> I have no idea if you are in C++ environment.
> 
> $ cat l.c
> #include <curses.h>
> int main()
> {
>     wattr_set(stdscr,0,0, 0);
> }
> $ diff l.c l.cc
> $ gcc-3.4 -Wall -std=c99 -W -pedantic -c l.c
> $ gcc-3.4 -Wall -std=c++98 -W -pedantic -c l.cc
> l.cc: In function `int main()':
> l.cc:5: warning: right-hand operand of comma has no effect
ANSI/ISO C++ is incompatible with C99. So it's better don't use such
constructions in _macros_.
> $ 
> 
> -- 
>  ___               _           Division of CS, Dept. of EECS in KAIST
> | __|  _ _ _  __ _| |___  _ _  _                     Member of SPARCS
> | _| || | ' `/ _` | / / || | || | http://sparcs.kaist.ac.kr/~eungkyu/
> |___`_,_|_||_`__, |_`_``_, |`_,_| @sparcs.kaist.ac.kr
>              |___/     |__/
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ncurses




reply via email to

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