Fixing compiler warnings
Adjusting toolchain files which compiler warnings to enable.
Fixing compiler warnings reported by Arm Clang and Arm GCC.
Change-Id: I715e875904ffd7ecfe994d3093cdf066373981b1
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 @@
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 inferenceSenderTask(void *pvParameters) {
int ret = 0;
- QueueHandle_t inferenceProcessQueue = reinterpret_cast<QueueHandle_t>(pvParameters);
+ QueueHandle_t _inferenceProcessQueue = reinterpret_cast<QueueHandle_t>(pvParameters);
xInferenceJob jobs[NUM_JOBS_PER_TASK];
// Create queue for response messages
@@ -227,7 +227,7 @@
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);
}