From fedab48ad2914335bdf810a1acf396f38472b1bb Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 27 Feb 2011 21:07:37 +0000 Subject: [PATCH] Fix warnings when building with POLYMER=0. git-svn-id: https://svn.eduke32.com/eduke32@1809 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 2 ++ polymer/eduke32/build/src/mdsprite.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 572726a12..e52d6b01d 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -7231,7 +7231,9 @@ int32_t loadboard(char *filename, char flags, int32_t *daposx, int32_t *daposy, int16_t *daang, int16_t *dacursectnum) { int16_t fil, i, numsprites, dq[MAXSPRITES], dnum = 0; +#ifdef POLYMER char myflags = flags&(~3); +#endif flags &= 3; diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index 5197cdc08..e02a8d719 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -1813,8 +1813,11 @@ int md3postload_polymer(md3model_t *m) surfi++; } - return 1; +#else + UNREFERENCED_PARAMETER(m); #endif + + return 1; }