handling a -Wall -pedantic warning