[exim-dev] [Bug 901] New: Patch to remove differ in signedne…

Góra strony
Delete this message
Reply to this message
Autor: Serge Demonchaux
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 901] New: Patch to remove differ in signedness (exim-4.70 RC2)
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=901
           Summary: Patch to remove differ in signedness  (exim-4.70 RC2)
           Product: Exim
           Version: N/A
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Packaging
        AssignedTo: nigel@???
        ReportedBy: serge-exim@???
                CC: exim-dev@???



Hi,

When compiled with gcc and -Wall causes differ in signedness as:

malware.c:234 --> parentheses around assignment used as truth value

parse.c:1778 --> unused variable 'o' ==> removed
parse.c:1779 --> const uschar *day_name[7]={ "mon"... ==> US"mon"...
parse.c:1837 --> strncmp ==> Ustrncmp
parse.c:1790 --> const uschar *month_name[]={ "jan"... ==> US"jan"...

sieve.c:2974 --> strncmp ==> Ustrncmp
sieve.c:3041 --> strncmp ==> Ustrncmp
sieve.c:3043 --> strncmp ==> Ustrncmp
sieve.c:3045 --> expand_string("..." ==> expand_string(US"..."
sieve.c:3071 --> expand_string("..." ==> expand_string(US"..."

tls-openssl.c:76 --> msg = ssl_errstring ==> msg = (uschar*)ssl_errstring
tls-openssl.c:82 --> strncmp ==> Ustrncmp
tls-openssl.c:256 --> char * ==> (uschar *)
tls-openssl.c:624 --> char * ==> US"..."


Not cleaned:
---

receive.c:1288 --> warning: 'rc' may be used uninitialized in this function




The patchs remove errors:

* exim-4.70RC2-differ_in_signedness.patch

Tested in GNU/Linux x86_64/i686


Sorry, if it isn't real bug.. :-)

--Serge


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email