This is an archive of the discontinued LLVM Phabricator instance.

Unbreak the gcc build (workaround a gcc bug)
ClosedPublic

Authored by davide on Nov 9 2016, 1:32 PM.

Details

Reviewers
pcc
Summary

[2571/2602] Building CXX object tools/llvm-extract/CMakeFiles/llvm-extract.dir/llvm-extract.cpp.o
../tools/llvm-extract/llvm-extract.cpp: In function ‘int main(int, char**)’:
../tools/llvm-extract/llvm-extract.cpp:226:44: warning: ISO C++ forbids zero-size array ‘argv’ [-Wpedantic]

ExitOnError ExitOnErr(std::string(argv[0]) + ": error reading input: ");
                                         ^

Sorry for the lack of context. GCC reference bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61259

Diff Detail

Event Timeline

davide updated this revision to Diff 77386.Nov 9 2016, 1:32 PM
davide retitled this revision from to Unbreak the gcc build (workaround a gcc bug).
davide updated this object.
davide added a reviewer: pcc.
pcc accepted this revision.Nov 9 2016, 1:35 PM
pcc edited edge metadata.
pcc added a subscriber: llvm-commits.

LGTM

This revision is now accepted and ready to land.Nov 9 2016, 1:35 PM
davide closed this revision.Nov 9 2016, 1:40 PM