Opened 3 years ago

Closed 3 years ago

Last modified 12 months ago

#7144 closed defect (wontfix)

GCC warning: multi-character character constant

Reported by: SF/superzanac Owned by: sev-
Priority: normal Component: --Other--
Keywords: Cc:


Compiler warning - warning: multi-character character constant [-Wmultichar] - for this enum:

// Some "common" commands sent to handleCommand()
enum {
kCloseCmd = 'clos',
kOKCmd = 'ok '

Maybe use numeric const instead?
Code smells bad, compiler - GCC 6.1.0

Ticket imported from: bugs/7144.

Change History (3)

comment:1 by sev-, 3 years ago

Owner: set to sev-
Resolution: wontfix
Status: newclosed

comment:2 by sev-, 3 years ago

We did it intentionally for readability. The actual constants don't really matter.

comment:3 by digitall, 12 months ago

Component: --Other--
Note: See TracTickets for help on using tickets.