Fix a couple of small bugs and compiler warnings

Merged Pablo Correa Gomez requested to merge pabloyoyoista/gnome-control-center:fix-perm-acq into main

See every commit message for the bug or the warning they fix

Merge request reports