https://bugzilla.novell.com/show_bug.cgi?id=231709 Summary: kpowersave-0.7.1-12: comparison with string literal Product: openSUSE 10.3 Version: unspecified Platform: All OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE AssignedTo: kde-maintainers@suse.de ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package kpowersave-0.7.1-12 The compiler said /usr/src/packages/BUILD/kpowersave-0.7.1/src/kpowersave.cpp:1482: warning: comparison with string literal The source code is } else if ((getenv("DESKTOP_SESSION") == "gnome") && (display->checkScreenSaverStatus() == 11)) { I agree with the compiler. Suggest new code } else if ((strcmp( getenv("DESKTOP_SESSION"), "gnome") == 0) && (display->checkScreenSaverStatus() == 11)) { -- 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, or are watching someone who is.