Title: #508: Fix/suppress few gcc8 warnings
Many warnings have been updated a few days ago with those changes:
I'd prefer to have PR #378 updated, reviewed and merged before having these patches
reviewed and merged.
See the full comment at https://github.com/SSSD/sssd/pull/508#issuecomment-363558227