Eclipse watning


When compiling on Eclipse, i get an error as follows: unknown warning option ‘-Wmaybe-uninitialized’; did you mean ‘-Wuninitialized’?

What MCU/Processor/Board and compiler are you using?

Eclipse - with lvgl-sdl

What do you want to achieve?

That it compiles without these warnings. - it does compile however.

What have you tried so far?

Searched the inernet for similar warnings, but did not find the solution related to Eclipse. This happens dring the paid lessons from the lvgl academy - part course material integration

Code to reproduce

Add the relevant code snippets here.

The code block(s) should be between ```c and ``` tags:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../../course_main.h"

static lv_chart_series_t *series;
lv_obj_t* chart;

int get_temprature(void)
	return rand() % 100;

void task_cb(lv_task_t task)
	int reading = get_temprature();

void task(void)
	lv_task_t* task = lv_task_create(task_cb,500,LV_TASK_PRIO_MID,NULL);

	chart = lv_chart_create(lv_scr_act(), NULL);
	series = lv_chart_add_series(chart, LV_COLOR_BLUE);


Screenshot and/or video

20:09:41 **** Incremental Build of configuration Debug for project lv_sim_eclipse_sdl ****
make all
Building file: …/simulator/excercise/_6_tasks/_6_task.c
Invoking: Cross GCC Compiler
gcc -I"/Users/erikschott/git/lv_sim_eclipse_sdl" -O0 -g3 -Wall -c -fmessage-length=0 -Wall -Wmaybe-uninitialized -MMD -MP -MF"simulator/excercise/_6_tasks/_6_task.d" -MT"simulator/excercise/_6_tasks/_6_task.o" -o “simulator/excercise/_6_tasks/_6_task.o” “…/simulator/excercise/_6_tasks/_6_task.c”
warning: unknown warning option ‘-Wmaybe-uninitialized’; did you mean ‘-Wuninitialized’? [-Wunknown-warning-option]
1 warning generated.
Finished building: …/simulator/excercise/_6_tasks/_6_task.c

It looks like this is a warning, not an error. I think this is caused by an old GCC version that doesn’t know about this warning type.