Opened 3 years ago

Closed 3 years ago

Last modified 5 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:
Game:

Description

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

:::c
// 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 Changed 3 years ago by sev-

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

comment:2 Changed 3 years ago by sev-

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

comment:3 Changed 5 months ago by digitall

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