Using a Docker container with Fedora 44 and GCC, I am able to reproduce a warning issued by CRAN:
macro.c: In function ‘macro_iterator_seek’:
macro.c:1099:32: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1099 | if (NULL != (first_paren = strchr(prefix, '[')))
| ^
gcc -c -o parser.tab.o -O2 -Wall -fPIC -DR_PACKAGE -DNDEBUG -DUSE_TERMCAP -DUSE_READLINE -DCOMPILE_DATE=""Thu Aug 13 22:45:10 UTC 2026"" -DCWB_VERSION="3.4.33" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread parser.tab.c
parser.tab.c:1649:1: warning: ‘yy_symbol_print’ defined but not used [-Wunused-function]
1649 | || defined __cplusplus || defined _MSC_VER)
| ^ ~~~~~~~~~~
parser.tab.c:832:27: warning: ‘yyrhs’ defined but not used [-Wunused-const-variable=]
832 |
| ^
parser.tab.c:791:28: warning: ‘yyprhs’ defined but not used [-Wunused-const-variable=]
791 | /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
| ^~~~~~
Using a Docker container with Fedora 44 and GCC, I am able to reproduce a warning issued by CRAN:
macro.c: In function ‘macro_iterator_seek’:
macro.c:1099:32: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1099 | if (NULL != (first_paren = strchr(prefix, '[')))
| ^
gcc -c -o parser.tab.o -O2 -Wall -fPIC -DR_PACKAGE -DNDEBUG -DUSE_TERMCAP -DUSE_READLINE -DCOMPILE_DATE=""Thu Aug 13 22:45:10 UTC 2026"" -DCWB_VERSION="3.4.33" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread parser.tab.c
parser.tab.c:1649:1: warning: ‘yy_symbol_print’ defined but not used [-Wunused-function]
1649 | || defined __cplusplus || defined _MSC_VER)
| ^ ~~~~~~~~~~
parser.tab.c:832:27: warning: ‘yyrhs’ defined but not used [-Wunused-const-variable=]
832 |
| ^
parser.tab.c:791:28: warning: ‘yyprhs’ defined but not used [-Wunused-const-variable=]
791 | /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
| ^~~~~~