mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 06:19:25 +03:00
Silence various warnings in builds removing content
The MAKEANDPLAY, NO_CUSTOM_LEVELS, and NO_EDITOR defines remove content or features. However, they then raise several warnings because of some cases, functions, or variables that end up not being used. This silences them by using the UNUSED macro, or by adding a default catch-all case if the define is defined (so unhandled cases will still raise warnings in a build that doesn't have these defines).
This commit is contained in:
1 parent
f2089c954f
commit
b29f3e2fae
4 files changed
+30
-5
No files matched your search
@@ -13,6 +13,7 @@
|
||||
#include "Maths.h"
|
||||
#include "Music.h"
|
||||
#include "Script.h"
|
||||
#include "Unused.h"
|
||||
#include "UtilityClass.h"
|
||||
|
||||
mapclass::mapclass(void)
|
||||
@@ -1544,7 +1545,9 @@ void mapclass::loadlevel(int rx, int ry)
|
||||
|
||||
switch(t)
|
||||
{
|
||||
#if !defined(MAKEANDPLAY)
|
||||
#ifdef MAKEANDPLAY
|
||||
UNUSED(copy_short_to_int);
|
||||
#else
|
||||
case 0:
|
||||
case 1: //World Map
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user