Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix maybe-uninitialized compile warn. (#363)
cc1: all warnings being treated as errors make: *** [/usr/local/cbdb/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.global:1031: src/pg_cron.o] Error 1 make: *** Waiting for unfinished jobs.... In function ‘get_range’, inlined from ‘get_list’ at src/entry.c:308:8, inlined from ‘parse_cron_entry’ at src/entry.c:195:8: src/entry.c:413:26: error: ‘num3’ may be used uninitialized [-Werror=maybe-uninitialized] 412 | if (num1 < low || num1 > high || num2 < low || num2 > high || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 413 | num3 < 0 || num3 > high) | ~~~~~~~~~^~~~~~~~~~~~~~ src/entry.c: In function ‘parse_cron_entry’: src/entry.c:337:37: note: ‘num3’ was declared here 337 | auto int num1, num2, num3; | ^~~~ cc1: all warnings being treated as errors
- Loading branch information