[reSIProcate] error: extra semicolon
Byron Campen
bcampen at estacado.net
Fri Jun 29 15:00:11 CDT 2007
Couldn't we just get rid of the semicolons? (The macro for
__SUNPRO_CC might not like it, but honestly I see no purpose to that
macro, so we could just define it to be empty as well)
Best regards,
Byron Campen
> 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
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070629/0bc96cad/attachment.bin>
More information about the resiprocate-devel
mailing list