From 4c9e60f29e1a6dea4369915eb6294f2a165adf43 Mon Sep 17 00:00:00 2001 From: Steffen Moeller Date: Thu, 15 Jan 2026 22:50:53 +0000 Subject: [PATCH] hostmot2 - board_name: Explicitly indicate __atribute__(nonstring) --- src/hal/drivers/mesa-hostmot2/hostmot2.h | 2 +- src/hal/drivers/mesa-hostmot2/llio_info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hal/drivers/mesa-hostmot2/hostmot2.h b/src/hal/drivers/mesa-hostmot2/hostmot2.h index 426e8e61b5b..8a4597951cb 100644 --- a/src/hal/drivers/mesa-hostmot2/hostmot2.h +++ b/src/hal/drivers/mesa-hostmot2/hostmot2.h @@ -145,7 +145,7 @@ typedef struct { rtapi_u32 idrom_type; rtapi_u32 offset_to_modules; rtapi_u32 offset_to_pin_desc; - rtapi_u8 board_name[8]; // ascii string, but not NULL terminated! + rtapi_u8 board_name[8] __attribute__ ((nonstring)); // ASCII string, but not NULL terminated! rtapi_u32 fpga_size; rtapi_u32 fpga_pins; rtapi_u32 io_ports; diff --git a/src/hal/drivers/mesa-hostmot2/llio_info.c b/src/hal/drivers/mesa-hostmot2/llio_info.c index da8dbcea08a..d300aeae124 100644 --- a/src/hal/drivers/mesa-hostmot2/llio_info.c +++ b/src/hal/drivers/mesa-hostmot2/llio_info.c @@ -26,7 +26,7 @@ #include "llio_info.h" typedef struct __info_entry_t { - char board_name[8]; + char board_name[8] __attribute__ ((nonstring)); const char *base_name; int num_ioport_connectors; int pins_per_connector;