Microsoft KB Archive/44063

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

QuickC with /W3 Generates Incorrect Warning PSS ID Number: Q44063 Article last modified on 10-31-1989 PSS database name: S_QuickC

1.00 1.01

MS-DOS

Summary:

When a function is declared as returning void and taking no parameters, QuickC will give the following warning:

warning C4071: ‘Func_A’ : no function prototype given

This warning occurs only when the warning is set to Level 3.

This behavior does not occur with QuickC Versions 2.00 or C 5.10.

More Information:

The following code will demonstrate this problem:

static long seed;

void Func_a(void) { seed=3; }

void Func_b(int New) { seed=New; }

void main(void) { Func_a(); Func_b(2); }

Copyright Microsoft Corporation 1989.