doc: fix some compilation warnings