Fix gcc7 deprecation warnings

cherry-pickd from !651 (merged)

Merge request reports

Loading