Fixup non-linux compile

We only use this function on linux and -Werror makes it a fatal build
error to have an unused function in here