Ich stehe gerade auf dem schlauch ... oder völlig blind ;-) bekomme folgende meldung: mkdir build C:/GNU/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32H743xx -ICore/Inc -IDrivers/STM32H7xx_HAL_Driver/Inc -IDrivers/STM32H7xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32H7xx/Include -IDrivers/CMSIS/Include -Og -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/main.d" -Wa,-a,-ad,-alms=build/main.lst Core/Src/main.c -o build/main.o Core/Src/main.c: In function 'main': Core/Src/main.c:43:29: warning: comparison between pointer and integer 43 | if( get_measure_state == MEAS_STATE_RUN) | ^~
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
Der underlying typ von enum ist doch int.
Wo sieht der Compiler da einen pointer ?
Gibt es einen Grund, den ich gerade nicht sehe, das nicht zu ignorieren ?
Der Sinn des ganzen ist es Schreibzugriffe von außerhalb des Modules zu unterbinden.