[Users] [Bug 3652] New: utils.c:4740:47: warning: ordered comparison of pointer with integer zero [-Wextra]

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Jun 15 18:27:58 CEST 2016


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3652

            Bug ID: 3652
           Summary: utils.c:4740:47: warning: ordered comparison of
                    pointer with integer zero [-Wextra]
    Classification: Unclassified
           Product: Claws Mail
           Version: other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: dcb314 at hotmail.com

Source code is

    while (i < 60 && score < 3
           && fgets(buffer, sizeof (buffer), fp) > 0) {

Suggest new code

    while (i < 60 && score < 3
           && fgets(buffer, sizeof (buffer), fp) != 0) {

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list