| Summary: | Build issue: kshowmail "comparison with string literal results" warnings | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Darrell <darrella> |
| Component: | non-core programs | Assignee: | Michele Calgaro <michele.calgaro> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugwatch, darrella, michele.calgaro |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2014 | ||
| Attachments: | Patch to fix string literal warnings | ||
P.S. The patch does eliminate the warnings.... Fixed in commit 1eaefc4. Darrell, strcmp return 0 when two strings are identical, so you need a ! in front of it ;) Build log is clean here. Thanks. :) |
Created attachment 1506 [details] Patch to fix string literal warnings The packatge builds but the following warnings appear: accountsetupdialog.cpp:259:34: warning: comparison with string literal results in unspecified behaviour [-Waddress] configlog.cpp:124:45: warning: comparison with string literal results in unspecified behaviour [-Waddress] configlog.cpp:134:43: warning: comparison with string literal results in unspecified behaviour [-Waddress]/bin/sh ../../libtool --tag=CXX --mode=link g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline -O2 -march=i486 -mtune=i686 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -avoid-version -module -L/opt/trinity/lib -o kcm_kshowmailconfigactions.la -rpath /opt/trinity/lib/trinity configactions.lo configlog.cpp:158:43: warning: comparison with string literal results in unspecified behaviour [-Waddress] configlog.cpp:160:48: warning: comparison with string literal results in unspecified behaviour [-Waddress] configlog.cpp:165:41: warning: comparison with string literal results in unspecified behaviour [-Waddress] configlog.cpp:167:46: warning: comparison with string literal results in unspecified behaviour [-Waddress] serverdialog.cpp:220:34: warning: comparison with string literal results in unspecified behaviour [-Waddress] I'm attaching a patch but as I'm not a C++ hacker, somebody please review and approve. :-)