Fixed some clang warnings.
Fixed warnings (..storage class specifier is deprecated [-Wdeprecated]).
Removed #pragma
Merge remote-tracking branch 'origin/fix-clang-warn' into stable