warnings: Fix some mostly spurious warnings

These are triggered when building with -O2 (with firmware compiler)
This commit is contained in:
popcornmix
2017-03-21 20:52:52 +00:00
parent 3ee8704a1f
commit b6271f4b73
2 changed files with 3 additions and 3 deletions

View File

@@ -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,
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 offset, backup_offset;
size_t offset, backup_offset = 0;
unsigned int match = 0;
if( stream->bytes - stream->current_offset - stream->offset < start_offset + length )

View File

@@ -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)
{
ILCS_WAIT_T *wait;
ILCS_WAIT_T *wait = NULL;
int i, copy = len;
// atomically retrieve given ->wait entry