[sr-dev] git:3.2: core and modules: fix compile warnings on freebsd