Errors compiling bro-pub-0.8a32 on Linux 2.4.20-8

Vern Paxson vern at icir.org
Sun Jul 13 12:03:42 PDT 2003


> Dict.cc: In member function `void* Dictionary::NextEntry(HashKey*&,
>     IterCookie*&, int) const':
> Dict.cc:260: choosing `HashKey::HashKey(const void*, int, unsigned int)' 
> over `
>     HashKey::HashKey(void*, int, int)'
> Dict.cc:260:   because worst conversion for the former is better than worst
>     conversion for the latter
> Dict.cc:288: choosing `HashKey::HashKey(const void*, int, unsigned int)' 
> over `
>     HashKey::HashKey(void*, int, int)'
> Dict.cc:288:   because worst conversion for the former is better than worst
>     conversion for the latter
> make: *** [Dict.o] Error 1
> 
> 
> This error looks more programatic to fix, so this will take more time. 
> Anyone with thoughts on this one?

Good catch by the compiler - this points out a warning in which two
calling sequences with quite different semantics could be confused due
to the implicit conversion rules.

I've changed the calling sequence of one of the calls to avoid the
possible ambiguity.

		Vern



More information about the Bro mailing list