remove some warings
resolve unit test warnings
Merge pull request #885 from ruil2/enc_quant_v1.0

remove some warnings