[all-commits] [llvm/llvm-project] ad42ea: Make use of '#pragma clang diagnostic' only with _...

Martin Liška via All-commits all-commits at lists.llvm.org
Wed Apr 19 02:48:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad42ea33bb39cfe4b82943e464382943962eb47c
      https://github.com/llvm/llvm-project/commit/ad42ea33bb39cfe4b82943e464382943962eb47c
  Author: Martin Liska <mliska at suse.cz>
  Date:   2023-04-19 (Wed, 19 Apr 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h

  Log Message:
  -----------
  Make use of '#pragma clang diagnostic' only with __clang__.

Otherwise one gets the following warning with GCC:
warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]

Differential Revision: https://reviews.llvm.org/D148695




More information about the All-commits mailing list