]> www.ginac.de Git - cln.git/blobdiff - include/cln/object.h
Avoid "typedef ... locally defined but not used" warnings.
[cln.git] / include / cln / object.h
index 15c13593f4aa98b2b4d29d597444590238eab400..c7763af4a8f9a3b45f4ffd5df4eb6212ba8fc38d 100644 (file)
@@ -538,7 +538,7 @@ inline cl_private_thing as_cl_private_thing (const cl_rcpointer& x)
   #define CL_DEFINE_CONVERTER(target_class)  \
     operator const target_class & () const                             \
     {                                                                  \
-      typedef int assert1 [2*(sizeof(target_class)==sizeof(*this))-1]; \
+      int (*dummy1)(int assert1 [2*(sizeof(target_class)==sizeof(*this))-1]); (void)dummy1; \
       return * (const target_class *) (void*) this;                    \
     }