Fix compiler warnings for padding option