Mailinglist Archive: opensuse-bugs (7993 mails)

< Previous Next >
[Bug 225721] New: gmime-2.2.3-20: comparison with string literal
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 4 Dec 2006 05:45:22 -0700 (MST)
  • Message-id: <bug-225721-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=225721

Summary: gmime-2.2.3-20: comparison with string literal
Product: openSUSE 10.2
Version: RC 5
Platform: All
OS/Version: SuSE Linux 10.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to build the package gmime-2.2.3-20

I got the following warning message from the compiler.

uudecode.c:150: warning: comparison with string literal

The source code is

fprintf (stderr, "%s: %s: No `begin' line\n", progname,
infile == DEFAULT_FILENAME ? "stdin" :
infile);

but

#define DEFAULT_FILENAME "-"

I agree with the compiler. Maybe the programmer intended

fprintf (stderr, "%s: %s: No `begin' line\n", progname,
(strcmp( infile, DEFAULT_FILENAME) == 0) ?
"stdin" : infile);


--
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.

< Previous Next >
Follow Ups