zephyr/tests
Carles Cufi 0b96dd419d tests: lib: mpsc_pbuf: Fix address-of-packed-mem warning
The warning below appears once -Waddress-of-packed-mem is enabled:

/__w/zephyr/zephyr/tests/lib/mpsc_pbuf/src/main.c: In function
'item_put_data_overwrite':
/__w/zephyr/zephyr/tests/lib/mpsc_pbuf/src/main.c:497:3: error:
converting a packed 'struct test_data_ext' pointer (alignment 1) to a
'uint32_t' {aka 'const unsigned int'} pointer (alignment 4) may result
in an unaligned pointer value [-Werror=address-of-packed-member]
  497 |   mpsc_pbuf_put_data(&buffer, (uint32_t *)&item, len);

To avoid the warning, as well as several others related to the same
problem, use an intermediate void * variable.

More info in #16587.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2021-12-10 14:08:59 +01:00
..
application_development/gen_inc_file
arch
benchmarks
bluetooth Bluetooth: Shell: Update audio.conf to use BT_FILTER_ACCEPT_LIST 2021-12-07 09:39:59 -06:00
boards
boot/uefi
cmake/config_dir
crypto tests: m2gl025_miv: exclude slow platform from some tests 2021-11-29 19:39:38 -05:00
drivers tests: build_all: remove display controller nodes from sensor test 2021-12-10 12:47:30 +01:00
kernel tests: kernel: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
lib tests: lib: mpsc_pbuf: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
misc
net boards: frdm_k64f: Solve conflict between UART3 and enet 2021-11-30 11:08:15 -06:00
posix
subsys tests: pm: s/power/pm tag 2021-12-10 07:43:01 -05:00
unit lib: os: cbprintf: Add flags to CBPRINTF_MUST_RUNTIME_PACKAGE 2021-11-29 21:13:56 +01:00
ztest testsuite: busy_sim: Add callback to the interrupt 2021-12-01 10:00:50 +01:00