report a bug |  advanced search |  statistics |  developer log in/out
Bug #67 Compile warning: comparison of unsigned expression < 0 is always false
Submitted: 2017-11-28 19:02 UTC Modified: -
From: zhb at iredmail dot org Assigned:
Status: Open
Mlmmj Version: 1.3.0.0 OS:
MTA: MTA Version:
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:

 

 [2017-11-28 19:02 UTC] zhb at iredmail dot org
Description:
------------
During compile, there're few warnings:

===============================
mail-functions.c:56:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0) {
          ~~~~~~~~~~~~~ ^ ~
mail-functions.c:80:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0) {
          ~~~~~~~~~~~~~ ^ ~
mail-functions.c:112:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0) {
          ~~~~~~~~~~~~~ ^ ~
mail-functions.c:138:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0) {
          ~~~~~~~~~~~~~ ^ ~
mail-functions.c:272:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0)
          ~~~~~~~~~~~~~ ^ ~
mail-functions.c:296:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0) {
          ~~~~~~~~~~~~~ ^ ~
mail-functions.c:323:19: warning: comparison of unsigned expression < 0 is always false 
[-Wtautological-compare]
       if(bytes_written < 0) {
          ~~~~~~~~~~~~~ ^ ~
7 warnings generated.
================================