Opened 3 years ago

Last modified 12 months ago

#7171 new defect

SWORD25: Casting away const-ness without an explicit const_cast

Reported by: DrMcCoy Owned by:
Priority: low Component: Engine: Sword25
Keywords: Cc:
Game: Broken Sword 2.5

Description

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

  • engines/sword25/util/lua/ldblib.cpp:213
  • engines/sword25/util/lua/ldblib.cpp:249
  • engines/sword25/util/lua/ldblib.cpp:254

As well as through the use of the sentinel macro in engines/sword25/util/lua/loadlib.cpp:128. Usages of that macro in:

  • engines/sword25/util/lua/loadlib.cpp:138
  • engines/sword25/util/lua/loadlib.cpp:161
  • engines/sword25/util/lua/loadlib.cpp:168

Ticket imported from: bugs/7171.

Change History (2)

comment:1 by bluegr, 3 years ago

Component: Engine: Sword25

comment:2 by digitall, 12 months ago

Game: Broken Sword 2.5
Note: See TracTickets for help on using tickets.