[[clang::optnone]] attribute doesn't work on OSX

Check whether it is required there at all.