tests: fix GCC warnings

[endlessm/eos-shell#4234]