Only ignore -Wdeprecated-copy if the used compiler supports the warning
authorDávid Bolvanský <david.bolvansky@gmail.com>
Mon, 26 Apr 2021 13:44:52 +0000 (15:44 +0200)
committerDávid Bolvanský <david.bolvansky@gmail.com>
Mon, 26 Apr 2021 14:00:54 +0000 (16:00 +0200)
commitb125c034af89e32d5258d593080ff0c4810776a0
tree2487faea286bdd08c924c31d4d41885e72d7ec7e
parent2d4c4d3c54365215849d964c2fdd31536585db19
Only ignore -Wdeprecated-copy if the used compiler supports the warning

This is needed after
  https://reviews.llvm.org/rG9658d045926545e62cc3f963fe611d7c5d0c9d98
which introduced code that at least didn't compile clean with clang 8.

Reviewed By: xbolva00

Differential Revision: https://reviews.llvm.org/D101288
llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
llvm/utils/unittest/googlemock/include/gmock/gmock.h
llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util-generated.h