Make patmos-clang compile in Release mode, remove some warnings about unused variables in Release mode
Merge branch 'master' into isarev_m23