From 29467e04fbc15f53001c0c95227db34160b776e7 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Fri, 26 Nov 2021 16:10:43 +0100 Subject: Fixing compiler warnings Adjusting toolchain files which compiler warnings to enable. Fixing compiler warnings reported by Arm Clang and Arm GCC. Change-Id: I715e875904ffd7ecfe994d3093cdf066373981b1 --- applications/freertos/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applications/freertos/main.cpp') diff --git a/applications/freertos/main.cpp b/applications/freertos/main.cpp index ae4bc38..0f4009e 100644 --- a/applications/freertos/main.cpp +++ b/applications/freertos/main.cpp @@ -164,7 +164,7 @@ void ethosu_semaphore_give(void *sem) { if (xPortIsInsideInterrupt()) { ret = xSemaphoreGiveFromISR(handle, NULL); if (ret != pdTRUE) { - printf("Error: Failed to give semaphore from ISR. ret - 0x%08x\n", ret); + printf("Error: Failed to give semaphore from ISR. ret - 0x%08lx\n", ret); } } else { ret = xSemaphoreGive(handle); @@ -210,7 +210,7 @@ void inferenceProcessTask(void *pvParameters) { void inferenceSenderTask(void *pvParameters) { int ret = 0; - QueueHandle_t inferenceProcessQueue = reinterpret_cast(pvParameters); + QueueHandle_t _inferenceProcessQueue = reinterpret_cast(pvParameters); xInferenceJob jobs[NUM_JOBS_PER_TASK]; // Create queue for response messages @@ -227,7 +227,7 @@ void inferenceSenderTask(void *pvParameters) { job->responseQueue = senderQueue; // Send job printf("inferenceSenderTask: Sending inference job: job=%p, name=%s\n", job, job->name.c_str()); - if (xQueueSend(inferenceProcessQueue, &job, portMAX_DELAY) != pdPASS) { + if (xQueueSend(_inferenceProcessQueue, &job, portMAX_DELAY) != pdPASS) { printf("Error: inferenceSenderTask failed in send to Q.\n"); exit(1); } -- cgit v1.2.1