Opened 4 years ago

Closed 4 years ago

Last modified 2 years 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 by sev-, 4 years ago

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

comment:2 by sev-, 4 years ago

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

comment:3 by digitall, 2 years ago

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