Add suppress warnings to encoder