mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
warnings: Fix some mostly spurious warnings
These are triggered when building with -O2 (with firmware compiler)
This commit is contained in:
@@ -329,9 +329,9 @@ STATIC_INLINE VC_CONTAINER_STATUS_T packet_get_byte( VC_CONTAINER_BYTESTREAM_T *
|
|||||||
STATIC_INLINE VC_CONTAINER_STATUS_T bytestream_find_startcode( VC_CONTAINER_BYTESTREAM_T *stream,
|
STATIC_INLINE VC_CONTAINER_STATUS_T bytestream_find_startcode( VC_CONTAINER_BYTESTREAM_T *stream,
|
||||||
size_t *search_offset, const uint8_t *startcode, unsigned int length )
|
size_t *search_offset, const uint8_t *startcode, unsigned int length )
|
||||||
{
|
{
|
||||||
VC_CONTAINER_PACKET_T *packet, *backup_packet;
|
VC_CONTAINER_PACKET_T *packet, *backup_packet = NULL;
|
||||||
size_t position, start_offset = position = *search_offset;
|
size_t position, start_offset = position = *search_offset;
|
||||||
size_t offset, backup_offset;
|
size_t offset, backup_offset = 0;
|
||||||
unsigned int match = 0;
|
unsigned int match = 0;
|
||||||
|
|
||||||
if( stream->bytes - stream->current_offset - stream->offset < start_offset + length )
|
if( stream->bytes - stream->current_offset - stream->offset < start_offset + length )
|
||||||
|
|||||||
@@ -543,7 +543,7 @@ static int ilcs_process_message(ILCS_SERVICE_T *st, int block)
|
|||||||
* -------------------------------------------------------------------- */
|
* -------------------------------------------------------------------- */
|
||||||
static void ilcs_response(ILCS_SERVICE_T *st, uint32_t xid, const unsigned char *msg, int len)
|
static void ilcs_response(ILCS_SERVICE_T *st, uint32_t xid, const unsigned char *msg, int len)
|
||||||
{
|
{
|
||||||
ILCS_WAIT_T *wait;
|
ILCS_WAIT_T *wait = NULL;
|
||||||
int i, copy = len;
|
int i, copy = len;
|
||||||
|
|
||||||
// atomically retrieve given ->wait entry
|
// atomically retrieve given ->wait entry
|
||||||
|
|||||||
Reference in New Issue
Block a user