.......PS. [ZBX-8040] fixed some compiler warnings