[misc] fix warnings