Mac compiling errors - object backing the pointer ... will be destroyed at the end of the full-expression [-Werror,-Wdangling-assignment]

Added the flag Arguments.Add(“-Wno-error”) to the GetCompileArguments_Global function on the MacToolChain.cs, but it does not fix the issue.