(OSX) Get rid of unused variable warning/variable is used before it's initialized