This is an archive of the discontinued LLVM Phabricator instance.

sanitizer: use pragma clang conditionally
ClosedPublic

Authored by marxin on May 3 2022, 1:20 AM.

Details

Summary

Use the pragma only when clang is defined.

Fixes:
sanitizer_common_libcdep.cpp:101: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]

Diff Detail

Event Timeline

marxin created this revision.May 3 2022, 1:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2022, 1:20 AM
marxin requested review of this revision.May 3 2022, 1:20 AM
dvyukov accepted this revision.May 3 2022, 2:15 AM
This revision is now accepted and ready to land.May 3 2022, 2:15 AM
This revision was landed with ongoing or failed builds.May 3 2022, 2:34 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2022, 2:34 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript