FindOpenMP: Avoid warning in check code
The test code added by !1812 (merged) leaves an unused variable warning. This breaks the check with -Werror
. Remove the variable and leave just the function call, which should still check that the OMP library is linked.
Fixes: #18102 (closed)