[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


            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
Patch to use proper enum values for uninitialized states


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.


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

Avinash Sonawane (rootKea)
PICT, Pune

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

More information about the Users mailing list