aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-19 19:13:38 +0200
committerEugene Sandulenko2017-01-25 22:41:54 +0100
commit0dfe25149634bff3f7bcb5cc5e883bfe2fe03d1e (patch)
tree3889bb579288f8225c15e7c5f86ec97a893ec12e
parent390c3793854a1c6b9c188112be3d8f293ae4475d (diff)
downloadscummvm-rg350-0dfe25149634bff3f7bcb5cc5e883bfe2fe03d1e.tar.gz
scummvm-rg350-0dfe25149634bff3f7bcb5cc5e883bfe2fe03d1e.tar.bz2
scummvm-rg350-0dfe25149634bff3f7bcb5cc5e883bfe2fe03d1e.zip
CRYO: Fix warnings
-rw-r--r--engines/cryo/CryoLib.h12
-rw-r--r--engines/cryo/defs.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/cryo/CryoLib.h b/engines/cryo/CryoLib.h
index 628ba29a42..ec06320132 100644
--- a/engines/cryo/CryoLib.h
+++ b/engines/cryo/CryoLib.h
@@ -34,15 +34,15 @@ extern short __debug, __libError, __osError;
#define CLNoError __libError = 0;
#define CLCheckError() if(__debug && __libError){ \
- char buffer[260]; \
- sprintf(buffer, "File %s at line %d, with __libError = %d and __osError = %d", __FILE__, __LINE__, __libError, __osError); \
- DebugStr(c2pstr(buffer)); \
+ char buffer_[260]; \
+ sprintf(buffer_, "File %s at line %d, with __libError = %d and __osError = %d", __FILE__, __LINE__, __libError, __osError); \
+ DebugStr(c2pstr(buffer_)); \
};
#define CLAssert(x) if(!(x)) { \
- char buffer[260]; \
- sprintf(buffer, "File %s at line %d, with __libError = %d and __osError = %d", __FILE__, __LINE__, __libError, __osError); \
- DebugStr(c2pstr(buffer)); \
+ char buffer_[260]; \
+ sprintf(buffer_, "File %s at line %d, with __libError = %d and __osError = %d", __FILE__, __LINE__, __libError, __osError); \
+ DebugStr(c2pstr(buffer_)); \
};
struct rect_t {
diff --git a/engines/cryo/defs.h b/engines/cryo/defs.h
index ed6fff2f0a..3400c23e80 100644
--- a/engines/cryo/defs.h
+++ b/engines/cryo/defs.h
@@ -101,7 +101,7 @@ enum OBJECT {
OBJ_PLAQUE, // 38
OBJ_39,
OBJ_40,
- OBJ_41,
+ OBJ_41
};
namespace Objects {