Opened 8 years ago

Closed 4 years ago

#7170 closed defect (fixed)

PRINCE: Casting away const-ness without an explicit const_cast

Reported by: DrMcCoy Owned by: sev-
Priority: blocker Component: Engine: Prince
Version: Keywords:
Cc: Game:

Description

GCC's -Wcast-qual complains about the casting away of cost-ness with a C-style cast in

  • engines/prince/prince.cpp:2587
  • engines/prince/script.cpp:1019
  • engines/prince/script.cpp:1835

Ticket imported from: bugs/7170.

Change History (4)

comment:1 by wjp, 8 years ago

These indicate actual bugs, by the way. Results from c_str() calls are stored persistently, which is a very bad idea.

comment:2 by csnover, 7 years ago

Component: Engine: Prince
Priority: lownormal

comment:3 by sev-, 4 years ago

Priority: normalblocker

comment:4 by sev-, 4 years ago

Owner: set to sev-
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.