Avoid warnings on recent gcc versions