InfiniSim/sim/drivers
Reinhold Gschweicher 7194e3e38e SpiNorFlash: use C++ style struct in C++ only header
`SpiNorFlash.h` is a C++ header, but the `Identification` struct is
created in a C style using `typedef struct`. Clang issues a warining
about this discrepancy:

```
In file included from /home/nero/repos/pinetime/InfiniSim/InfiniTime/src/systemtask/SystemTask.cpp:13:
/home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:16:21: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
      typedef struct __attribute__((packed)) {
                    ^
                     Identification
/home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:17:9: note: type is not C-compatible due to this default member initializer
        uint8_t manufacturer = 0;
        ^~~~~~~~~~~~~~~~~~~~
/home/nero/repos/pinetime/InfiniSim/sim/drivers/SpiNorFlash.h:20:9: note: type is given name 'Identification' for linkage purposes by this typedef declaration
      } Identification;
        ^
1 warning generated.
```

The easy fix is to use a C++ style struct.

Same fix as in: https://github.com/InfiniTimeOrg/InfiniTime/pull/1046
2022-04-24 19:13:56 +02:00
..
Bma421.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
Bma421.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
Cst816s.cpp Cst816s: scale down SDL mouse coordinates according to MONITOR_ZOOM 2022-03-30 20:51:41 +02:00
Cst816s.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
Hrs3300.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
Hrs3300.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
SpiMaster.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
SpiMaster.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
SpiNorFlash.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
SpiNorFlash.h SpiNorFlash: use C++ style struct in C++ only header 2022-04-24 19:13:56 +02:00
TwiMaster.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
TwiMaster.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00
Watchdog.cpp Initial InfiniSim project 2022-02-17 22:57:08 +01:00
Watchdog.h Initial InfiniSim project 2022-02-17 22:57:08 +01:00