[Bug 432986] New: psmisc-22.6-30: ordered comparison of pointer with integer zero
https://bugzilla.novell.com/show_bug.cgi?id=432986 Summary: psmisc-22.6-30: ordered comparison of pointer with integer zero Product: openSUSE 11.1 Version: Factory Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just tried to compile Suse Linux package psmisc-22.6-30 and the compiler said pstree.c:864: warning: ordered comparison of pointer with integer zero The source code is (tigetstr ("acsc") > 0)) { Suggest replace with (tigetstr ("acsc") != 0)) { -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432986 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |werner@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432986 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432986#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Enhancement Status|NEW |NEEDINFO Info Provider| |dcb314@hotmail.com Priority|P5 - None |P4 - Low --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2008-10-07 06:18:06 MDT --- The manual page of tigetstr(3ncurses) states: The tigetstr routine returns the value (char *)-1 if capname is not a string capability, or 0 if it is canceled or absent from the terminal description. which compiler shows this error? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432986 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=432986#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|dcb314@hotmail.com | Resolution| |WORKSFORME --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2008-10-09 08:32:50 MDT --- I'm using now ((int)tigetstr ("acsc") > 0)) { becasue your suggestion would cause a real bug. Btw. what is wrong getting an answer on my question? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com