citusdata / citusdata/pg_cron

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

Open
#272 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
3.9k
Forks
260
Avg merge
5d 5h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.