Skip to content

Warnings in GCC 16.1.1 #104

Description

@ablaette

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
| ^~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions