Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker postgres:16beta1-alpine : src/job_metadata.c:1526:24: error: declaration of 'schedule' shadows a previous local [-Werror=shadow=compatible-local] #272

Open
xxaier opened this issue May 31, 2023 · 0 comments

Comments

@xxaier
Copy link

xxaier commented May 31, 2023

docker postgres:16beta1-alpine : src/job_metadata.c:1526:24: error: declaration of 'schedule' shadows a previous local [-Werror=shadow=compatible-local]

[pg 7/9] RUN cd /plugin/pg_cron && make && make install:
#0 0.227 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wsh
adow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -fPIC -fvisibility=hidden -std=c99 -Wall
-Wextra -Werror -Wno-unused-parameter -Wno-implicit-fallthrough -Iinclude -I/usr/local/include -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -D_GN
U_SOURCE -I/usr/include/libxml2 -c -o src/entry.o src/entry.c
#0 0.296 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wsh
adow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -fPIC -fvisibility=hidden -std=c99 -Wall
-Wextra -Werror -Wno-unused-parameter -Wno-implicit-fallthrough -Iinclude -I/usr/local/include -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -D_GN
U_SOURCE -I/usr/include/libxml2 -c -o src/job_metadata.o src/job_metadata.c
#0 0.350 src/job_metadata.c: In function 'ParseSchedule':
#0 0.350 src/job_metadata.c:1526:24: error: declaration of 'schedule' shadows a previous local [-Werror=shadow=compatible-local]
#0 0.350 1526 | entry *schedule = calloc(sizeof(entry), sizeof(char));
#0 0.350 | ^~~~~~~~
#0 0.350 src/job_metadata.c:1514:16: note: shadowed declaration is here
#0 0.350 1514 | entry *schedule = parse_cron_entry(scheduleText);
#0 0.350 | ^~~~~~~~
#0 0.538 cc1: all warnings being treated as errors
#0 0.539 make: *** [: src/job_metadata.o] Error 1


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant