fix attributes warnings for clang for 0.4.25