apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41388] New: - compiler warning
Date Wed, 17 Jan 2007 10:03:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41388>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41388

           Summary: compiler warning
           Product: APR
           Version: 1.2.8
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: mskibbe@suse.de


we have a bug report in our bugzilla (http://bugzilla.novell.com #227455) which
says following:

<*snip

I just tried to compile package libapr1-1.2.7-23

strings/apr_snprintf.c:1261: warning: comparison with string literal

The source code is

if (prefix_char != NUL && s != S_NULL && s != char_buf) {

but

#define S_NULL "(null)"

Suggest new code
            if (prefix_char != NUL && (strcmp( s, S_NULL) != 0) && s != char_buf)
{

snap*>

i take a look in the 1.2.8 sources and saw that this problem is there,too.

i attach a patch which fix this issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message