[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
attr_get warning when on ubuntu 13.04
From: |
Gaute Hope |
Subject: |
attr_get warning when on ubuntu 13.04 |
Date: |
Sat, 14 Dec 2013 11:18:30 +0100 |
User-agent: |
Sup/git |
Greetings,
I'm getting some compiler warnings when using attr_get and wattr_get on
Ubuntu 13.04 which I don't get elsewhere:
warning: the compariosn will always evaluate as 'true' for the address
of 'attrs' will never be NULL [-Waddress]
warning: the comparison will always evaluate as 'true' for the address
of 'pair' will never be NULL [-Waddress]
(gcc 4.7.3)
this is with code that goes like this:
attr_t attrs = 0;
short pair = 0;
int ret = attr_get(&attrs, &pair, 0);
I am guessing the macros have been tweaked between the ncurses versions,
can you confirm this?
(in which case I will just ignore the warning and wait for Ubuntu to tag
along..)
Cheers, Gaute
signature.asc
Description: PGP signature
- attr_get warning when on ubuntu 13.04,
Gaute Hope <=