pedantic warning fixed