In article <jhz3f.40826$Tf5.23733@newsread1.mlpsca01.us.to.ve rio.net>,
Victor Bazarov <v.Abazarov@comAcast.net> wrote:[color=blue]
>wenmang@yahoo.com wrote:[color=green]
>> Here is a function:
>> void f(const char *){};[/color]
>
>The semicolon after it is most likely redundant (or even harmful).[/color]
Comeau C/C++ 4.3.3 (Aug 6 2003 15:13:37) for ONLINE_EVALUATION_BETA1
Copyright 1988-2003 Comeau Computing. All rights reserved.
MODE:strict errors C++
"ComeauTest.c", line 1: error: extra ";" ignored,
In C: A function definition does not end with a semicolon
In C++: A function definition, extern "C" or namespace,
does not end with a semicolon
void f(const char *){};
^
1 error detected in the compilation of "ComeauTest.c".
--
Greg Comeau / Celebrating 20 years of Comeauity!
Comeau C/C++ ONLINE ==>
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?