Bug 235553 - enigma-1.00-2: comparison with string literal
Summary: enigma-1.00-2: comparison with string literal
Status: RESOLVED DUPLICATE of bug 233655
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 21:21 UTC by David Binderman
Modified: 2007-01-17 09:57 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2007-01-16 21:21:54 UTC
I just tried to compile package enigma-1.00-2

The compiler said

items.cc:1426: warning: comparison with string literal

The source code is

                (get_stone_name() == "st-wood-growing" && GetStone(p))) {

Suggest new code

                ((strcmp( get_stone_name(), "st-wood-growing") == 0) && GetStone(p))) {
Comment 1 Stefan Dirsch 2007-01-16 22:30:37 UTC
Feel free to close as duplicate of Bug #233655.
Comment 2 Matej Horvath 2007-01-17 09:57:05 UTC

*** This bug has been marked as a duplicate of bug 233655 ***