clean build warning related encoder
Merge pull request #937 from ruil2/enc_warnings_1

    clean build warning related encoder