Replace 'void main' with 'int main'.
The C and C++ standards require that main be defined with a return type of 'int'. Some compilers permit 'void' as an extension but clang makes this a hard error.
This commit is contained in:
Родитель
7ce4dc2f71
Коммит
45e57132f4
|
@ -164,7 +164,7 @@ A test() {
|
|||
return a1 + A() + a2 + A() + a3 + a4;
|
||||
}
|
||||
|
||||
void main() {
|
||||
int main() {
|
||||
int i;
|
||||
|
||||
/* Call test(), with a different ctor/dtor throwing each time */
|
||||
|
|
|
@ -923,7 +923,7 @@ VOID Test88(_Inout_ PLONG Counter)
|
|||
finally { *Counter += 1; }
|
||||
}
|
||||
|
||||
VOID main(int argc, char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
{
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче