fixed warnings on MacOS builder (master)

@ilya-lavrenov patch (#2922)