[reSIProcate] error: extra semicolon
Alfred E. Heggestad
aeh at db.org
Fri Jun 29 05:08:35 CDT 2007
Hi
The same problem exist on FreeBSD; compiling applications using resip
with -pedantic will not work on RedHat ES4 or FreeBSD. Is there any
interest in fixing this?
this "hack" fixes the problem, but I am sure that a better solution
can be found:
Index: rutil/HeapInstanceCounter.hxx
===================================================================
--- rutil/HeapInstanceCounter.hxx (revision 7175)
+++ rutil/HeapInstanceCounter.hxx (working copy)
@@ -40,7 +40,7 @@
#if defined (__SUNPRO_CC)
#define RESIP_HeapCount(type_)class type_
#else
-#define RESIP_HeapCount(type_)
+#define RESIP_HeapCount(type_) struct foo
#endif
#endif // RESIP_HEAP_COUNT
/alfred
Alfred E. Heggestad wrote:
> Hi
>
> I get alot of errors when building my application (using resip-1.1)
> on a Red Hat 4 box:
>
> /usr/local/include/resip/stack/Headers.hxx:115: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:116: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:117: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:118: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:119: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:120: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:122: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:123: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:124: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:126: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:128: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:132: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:133: error: extra semicolon
> /usr/local/include/resip/stack/Headers.hxx:134: error: extra semicolon
>
>
>
> in my build the macro RESIP_HEAP_COUNT is not defined, so RESIP_HeapCount
> will evaluate to nothing:
>
> #define RESIP_HeapCount(type_)
>
>
> hence the class definition will get a stray ';' semicolon. Is there a good
> way to fix this? Either by removing all semicolons following RESIP_HeapCount
> in all header files, or defining RESIP_HeapCount to a dummy value?
>
>
> the application is compiled with "-pedantic" - removing the gives no errors.
>
>
> /alfred
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
More information about the resiprocate-devel
mailing list