[cfe-commits] r89333 - in /cfe/trunk: lib/Frontend/CompilerInvocation.cpp tools/driver/CMakeLists.txt tools/driver/Makefile tools/driver/cc1_main.cpp tools/driver/driver.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Nov 19 05:39:11 PST 2009
Am 19.11.2009 um 13:45 schrieb Edward O'Callaghan:
> Hi Daniel,
>
> I believe this introduces the following warning:
>
> llvm[4]: Compiling cc1_main.cpp for Debug build
> llvm[4]: Compiling driver.cpp for Debug build
> driver.cpp: In function 'int main(int, const char**)':
> driver.cpp:211: warning: ISO C++ forbids zero-size array 'argv'
The -pedantic warning looks bogus to me. If it is really bogus someone should
file a bug in GCC bugzilla (test case attached). Replacing argv[0] with *argv
silences the warning.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g++warning.cpp
Type: application/octet-stream
Size: 141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091119/1e6a716e/attachment.obj>
More information about the cfe-commits
mailing list