error and warnnings when i build the code in CubeIDE1.15.0
Hello ST community when i build my code in STM32F407VG or in STM32H735IG many warrnings& error as shown :
../Core/Src/main.c: In function 'CDC_HANDLE':
../Core/Src/main.c:112:5: warning: 'main' is normally a non-static function [-Wmain]
112 | int main(void)
| ^~~~
../Core/Src/main.c:208:13: error: invalid storage class for function 'MX_GPIO_Init'
208 | static void MX_GPIO_Init(void)
| ^~~~~~~~~~~~
../Core/Src/main.c:249:1: error: expected declaration or statement at end of input
249 | }
| ^
../Core/Src/main.c: At top level:
../Core/Src/main.c:52:13: warning: 'MX_GPIO_Init' used but never defined
52 | static void MX_GPIO_Init(void);
| ^~~~~~~~~~~~
../Core/Src/main.c:241:6: warning: 'Error_Handler' defined but not used [-Wunused-function]
241 | void Error_Handler(void)
| ^~~~~~~~~~~~~
../Core/Src/main.c:208:13: warning: 'MX_GPIO_Init' defined but not used [-Wunused-function]
208 | static void MX_GPIO_Init(void)
| ^~~~~~~~~~~~
../Core/Src/main.c:162:6: warning: 'SystemClock_Config' defined but not used [-Wunused-function]
162 | void SystemClock_Config(void)
| ^~~~~~~~~~~~~~~~~~
../Core/Src/main.c:112:5: warning: 'main' defined but not used [-Wunused-function]
112 | int main(void)
| ^~~~
make: *** [Core/Src/subdir.mk:34: Core/Src/main.o] Error 1
"make -j2 all" terminated with exit code 2. Build might be incomplete.
17:10:20 Build Failed. 3 errors, 6 warnings. (took 1s.612ms)
so can you help me & say what can i do . thanks
