Makefile: add -Wno-stringop-truncation for y.tab.o
This file is auto-generated, and it currently spews the following
warning for me:
In function ‘setup_to_parse_string’,
inlined from ‘evaluate_arithmetic_expression’ at y.tab.c:1571:2:
y.tab.c:1559:9: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-truncation]
1559 | strncpy(lexer_input_buffer, string, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
y.tab.c:1556:19: note: length computed here
1556 | if (len > strlen(string))
| ^~~~~~~~~~~~~~
when compiled with:
gcc (Debian 12.2.0-14) 12.2.0
Just set -Wno-stringop-truncation unconditionally in the Makefile for
this file, don't think there's any point in checking if this warning
has been enabled manually.
Signed-off-by: Jens Axboe <axboe@kernel.dk>