[PATCH] D101288: Only ignore -Wdeprecated-copy if the used compiler supports the warning

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 07:16:13 PDT 2021


xbolva00 reopened this revision.
xbolva00 added a comment.
This revision is now accepted and ready to land.

This has issue (error: missing binary operator before token "(") on GCC, I trusted and thought you checked it if it builds fine.

Try:

  #if defined(__clang__) 
  #if __has_warning("-Wdeprecated-copy")
  #endif
  #endif

I am not gonna spend my time on this deprecated-copy hell anymore. Public bots are ok, you use clang 8, so please try again & commit by yourself.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101288/new/

https://reviews.llvm.org/D101288



More information about the llvm-commits mailing list