This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Make function declarations C-compatible
ClosedPublic

Authored by mcgrathr on Dec 20 2017, 6:31 PM.

Details

Summary

The public sanitizer headers are intended to be usable from either
C++ or C, but they declare no-argument functions with the syntax that
is not a proper prototype declaration in C. This goes unnoticed until
someone uses -Wsystem-headers.

Diff Detail

Event Timeline

mcgrathr created this revision.Dec 20 2017, 6:31 PM
Herald added subscribers: Restricted Project, cryptoad. · View Herald TranscriptDec 20 2017, 6:31 PM
vitalybuka accepted this revision.Dec 20 2017, 7:03 PM
This revision is now accepted and ready to land.Dec 20 2017, 7:03 PM
This revision was automatically updated to reflect the committed changes.