[Users] [Bug 4036] New: Use proper enum values for uninitialized states

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Mon Jun 11 13:44:45 CEST 2018


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

            Bug ID: 4036
           Summary: Use proper enum values for uninitialized states
    Classification: Unclassified
           Product: Claws Mail
           Version: GIT
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: rootkea at gmail.com

Created attachment 1882
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1882&action=edit
Patch to use proper enum values for uninitialized states

Hello!

Please find the attached patch which aims to use proper enum values instead of
-1 for uninitialized states.

Since the type of enum is implementation defined[0] and can be unsigned int,
storing or comparing with -1 in 0-based enum is troublesome.

Please let me know if anything needs to be fixed/amended.

Thanks!

[0] http://port70.net/~nsz/c/c11/n1570.html#6.7.2.2p4

Regards,
Avinash Sonawane (rootKea)
PICT, Pune
https://rootkea.wordpress.com

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



More information about the Users mailing list