Menu

#7171 SWORD25: Casting away const-ness without an explicit const_cast

*None
open
nobody
None
2
2016-07-20
2016-07-20
Sven Hesse
No

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

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.