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.
g++warning.cpp
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
