mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk libT) fix compiler warning: "peer-io.h:282: warning: inlining failed in call to ‘evbuffer_add_uint8’: optimizing for size and code size would grow"
This commit is contained in:
@@ -815,6 +815,12 @@ tr_peerIoWriteBytes( tr_peerIo * io, const void * bytes, size_t byteCount, tr_bo
|
||||
****
|
||||
***/
|
||||
|
||||
void
|
||||
evbuffer_add_uint8( struct evbuffer * outbuf, uint8_t byte )
|
||||
{
|
||||
evbuffer_add( outbuf, &byte, 1 );
|
||||
}
|
||||
|
||||
void
|
||||
evbuffer_add_uint16( struct evbuffer * outbuf, uint16_t addme_hs )
|
||||
{
|
||||
|
||||
@@ -278,12 +278,7 @@ tr_peerIoIsEncrypted( const tr_peerIo * io )
|
||||
return ( io != NULL ) && ( io->encryptionMode == PEER_ENCRYPTION_RC4 );
|
||||
}
|
||||
|
||||
static inline void
|
||||
evbuffer_add_uint8( struct evbuffer * outbuf, uint8_t byte )
|
||||
{
|
||||
evbuffer_add( outbuf, &byte, 1 );
|
||||
}
|
||||
|
||||
void evbuffer_add_uint8 ( struct evbuffer * outbuf, uint8_t byte );
|
||||
void evbuffer_add_uint16( struct evbuffer * outbuf, uint16_t hs );
|
||||
void evbuffer_add_uint32( struct evbuffer * outbuf, uint32_t hl );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user