tlv_eeprom: suppress -Wstringop-truncation warning for false positive
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Wed, 5 Nov 2025 04:38:46 +0000 (23:38 -0500)
committerHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 17 Nov 2025 15:36:11 +0000 (10:36 -0500)
commit0eb28cc42b699d59b8e0a59596941d904c3a75c4
treefdb5633fec5c2ed706ec31abc5a10db32d43ffe4
parentf10cb09a7b170592a596a82e7961ec729fe7b71a
tlv_eeprom: suppress -Wstringop-truncation warning for false positive

Suppress this warning:

tlv_eeprom.c:490:17: warning: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
  490 |                 strncpy(data, strval, MAX_TLV_VALUE_LEN);
      |                 ^

Data is a fixed-length buffer, and no terminating null character is required,
thus this warning is a false positive.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
src/tlv_eeprom.c