Compiler warnings point out qualitative issues with the code. gcc emits roughly 3860 warnings on Linux-amd64.
This batch addresses the top two categories,
scripts/Y2K.cpp:467:5: warning: deleting object of polymorphic class type "LevelScript_0000" which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
467 | delete ((LevelScript_0000 *)ptr);
scripts/LEVEL0.cpp:1036:27: warning: unused variable "event_data" [-Wunused-variable]
Checklist
[x] I have tested my changes locally and verified that they work as intended.
[x] I have reviewed the changes to ensure they do not introduce any unnecessary complexity or duplicate code.
[x] I understand that by submitting this pull request, I am agreeing to license my contributions under the project's license.
Pull Request Type
Description
Compiler warnings point out qualitative issues with the code. gcc emits roughly 3860 warnings on Linux-amd64. This batch addresses the top two categories,
Checklist