pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/net/xorp



On Thu, Jul 05, 2012 at 12:51:22AM +0000, David Holland wrote:
> On Tue, Jul 03, 2012 at 05:36:10PM +0000, Joerg Sonnenberger wrote:
>  > Modified Files:
>  >    pkgsrc/net/xorp: Makefile distinfo
>  >    pkgsrc/net/xorp/patches: patch-libxorp_xorp.h
>  > Added Files:
>  >      [...]
>  > 
>  > Log Message:
>  > Fix a number of issues found by clang:
>  > - missing this references to ensure template functions are found
>  > - using == as assignment
>  > - unused functions in lex sources
>  > - adding integers to strings instead of formatting them
>  > - class vs struct mismatches
> 
> port.cc: In member function 'void Port<A>::port_io_receive(const A&, 
> __uint16_t, const __uint8_t*, size_t)':
> port.cc:785:5: error: conflicting declaration 'typedef char 
> static_assertion__LINE__ [((class PacketRouteEntry<A>::SIZE == 20) ? 1 : 
> (-1))]'
> port.cc:784:5: error: 'static_assertion__LINE__' has a previous declaration 
> as 'typedef char static_assertion__LINE__ [1]'
> 
> I haven't looked at the source file yet, but it very much smells like
> either gcc or clang's cpp is broke.

I can't look at this ATM, but can you try just inserting an intermediate
macro with __LINE__ as argument?

Joerg



Home | Main Index | Thread Index | Old Index