Skip to content

unused-const-variable and unused-function warnings #101

@ablaette

Description

@ablaette

On Fedora 42 with R-devel (r88876) and clang (clang version 21.1.1 (Fedora 21.1.1-1.fc43)) I see:

clang -std=gnu23 -c -o parser.tab.o -O2 -Wall -fPIC -DR_PACKAGE -DNDEBUG -DUSE_TERMCAP -DUSE_READLINE -DCOMPILE_DATE=""Mon Sep 29 19:18:53 UTC 2025"" -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:791:28: warning: unused variable 'yyprhs' [-Wunused-const-variable]
791 | static const yytype_uint16 yyprhs[] =
| ^~~~~~
parser.tab.c:832:27: warning: unused variable 'yyrhs' [-Wunused-const-variable]
832 | static const yytype_int16 yyrhs[] =
| ^~~~~
parser.tab.c:1649:1: warning: unused function 'yy_symbol_print' [-Wunused-function]
1649 | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
| ^~~~~~~~~~~~~~~
3 warnings generated.

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