[Bro-Dev] #335: Fix compiler warnings (was: Small warning about "main")
Bro Tracker
bro at tracker.icir.org
Mon Dec 6 17:40:52 PST 2010
#335: Fix compiler warnings
----------------------+--------------------
Reporter: seth | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro1.6
Component: Bro | Version:
Resolution: | Keywords:
----------------------+--------------------
Description changed by seth:
Old description:
> Small warning during compile about the main function::
>
> {{{
> main.cc: In function ‘int main(int, char**)’:
> main.cc:415: warning: deprecated conversion from string constant to
> ‘char*’
> }}}
New description:
{{{
main.cc: In function ‘int main(int, char**)’:
main.cc:415: warning: deprecated conversion from string constant to
‘char*’
}}}
{{{
DCE_RPC.cc: In constructor ‘UUID::UUID(const char*)’:
DCE_RPC.cc:85: warning: format not a string literal and no format
arguments
}}}
{{{
PrefixTable.cc: In member function ‘void* PrefixTable::Lookup(const Val*,
bool) const’:
PrefixTable.cc:103: warning: format not a string literal and no format
arguments
}}}
{{{
RemoteSerializer.cc: In member function ‘bool
RemoteSerializer::DoMessage()’:
RemoteSerializer.cc:1508: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘long long unsigned int’
RemoteSerializer.cc:1514: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘long long unsigned int’
RemoteSerializer.cc: In member function ‘bool
RemoteSerializer::SendToChild(char, RemoteSerializer::Peer*, char*, int)’:
RemoteSerializer.cc:2601: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
RemoteSerializer::SendToChild(char, RemoteSerializer::Peer*, int, ...)’:
RemoteSerializer.cc:2625: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘void
RemoteSerializer::InternalCommError(const char*)’:
RemoteSerializer.cc:2706: warning: format not a string literal and no
format arguments
RemoteSerializer.cc: In member function ‘bool
SocketComm::ProcessParentMessage()’:
RemoteSerializer.cc:3056: warning: format not a string literal and no
format arguments
RemoteSerializer.cc: In member function ‘bool
SocketComm::ForwardChunkToPeer()’:
RemoteSerializer.cc:3226: warning: format ‘%d’ expects type ‘int’, but
argument 2 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
SocketComm::ProcessRemoteMessage(SocketComm::Peer*)’:
RemoteSerializer.cc:3309: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
SocketComm::SendToParent(char, SocketComm::Peer*, const char*, int)’:
RemoteSerializer.cc:3786: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
SocketComm::SendToParent(char, SocketComm::Peer*, int, ...)’:
RemoteSerializer.cc:3805: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
SocketComm::SendToPeer(SocketComm::Peer*, char, const char*, int)’:
RemoteSerializer.cc:3841: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
SocketComm::SendToPeer(SocketComm::Peer*, char, int, ...)’:
RemoteSerializer.cc:3860: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
RemoteSerializer.cc: In member function ‘bool
SocketComm::SendToPeer(SocketComm::Peer*, ChunkedIO::Chunk*)’:
RemoteSerializer.cc:3881: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘SourceID’
}}}
{{{
SMB.cc: In member function ‘void SMB_Session::Deliver(int, int, const
u_char*)’:
SMB.cc:169: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘long int’
}}}
{{{
Sessions.cc: In member function ‘void NetSessions::Internal(const char*,
const pcap_pkthdr*, const u_char*)’:
Sessions.cc:1357: warning: format not a string literal and no format
arguments
}}}
{{{
cq.c: In function ‘cq_debugbucket’:
cq.c:574: warning: format ‘%d’ expects type ‘int’, but argument 4 has type
‘long int’
}}}
{{{
patricia.c: In function ‘lookup_then_remove’:
patricia.c:1030: warning: suggest parentheses around assignment used as
truth value
}}}
--
--
Ticket URL: <http://tracker.icir.org/bro/ticket/335#comment:1>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list