fix -Wignored-qualifiers