From c89d2526f759124191274e887085ef530766b2b2 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 10 May 2004 14:01:09 +0000 Subject: [PATCH] assert(i*0) for using "i" and preventing the compiler warning for unreferenced variable --- vcg/simplex/face/base.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/face/base.h b/vcg/simplex/face/base.h index f303e4aa..221715d2 100644 --- a/vcg/simplex/face/base.h +++ b/vcg/simplex/face/base.h @@ -24,6 +24,11 @@ History $Log: not supported by cvs2svn $ +Revision 1.9 2004/05/10 13:19:38 cignoni +Added mandatory template params for edge and face class names to the face class +Changed type of return face pointer to the one passed by templ params +Changed name of func FV to VF (it stores Vertex-Face Topology) + Revision 1.8 2004/05/06 09:06:59 pietroni changed names to topology functions @@ -349,7 +354,7 @@ public: #ifdef __VCGLIB_FACE_WT return _wt[i]; #else - assert(0); + assert(i*0); return *(TCTYPE*)(&_flags); #endif } @@ -408,7 +413,7 @@ public: #ifdef __VCGLIB_FACE_WC return _wc[i]; #else - assert(0); + assert(i*0); return *(Color4b*)(&_flags); #endif }