Skip to content

warning on compile pg_probackup 13 on RHEL8.3 #338

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

Closed
shab2 opened this issue Feb 25, 2021 · 1 comment
Closed

warning on compile pg_probackup 13 on RHEL8.3 #338

shab2 opened this issue Feb 25, 2021 · 1 comment

Comments

@shab2
Copy link

shab2 commented Feb 25, 2021

src/catalog.c: In function ‘lock_backup’:
src/catalog.c:603:9: warning: ‘encoded_pid’ may be used uninitialized in this function [-Wmaybe-uninitialized]
elog(WARNING, "Cannot to lock backup %s in exclusive mode, because process %u owns shared lock",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
base36enc(backup->start_time), encoded_pid);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/catalog.c:536:11: note: ‘encoded_pid’ was declared here
pid_t encoded_pid;
^~~~~~~~~~~

@gsmolk
Copy link
Contributor

gsmolk commented Feb 25, 2021

Hello!
Fixed that in 8e930b7

@gsmolk gsmolk closed this as completed Feb 26, 2021
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

2 participants