KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q37020: QuickC Generates Warning Message "C4071" erroneously

Article: Q37020
Product(s): See article
Version(s): 1.01
Operating System(s): MS-DOS
Keyword(s): ENDUSER | BUGLISTQC | mspl13_c
Last Modified: 20-OCT-1988

The code below fragment demonstrates a problem with the way the
QuickC environment handles certain prototypes. When compiled inside
the environment at warning level three, the compiler generates the
warning message C4071 "<function name> no prototype given," even
though the function does have a prototype.

Microsoft has confirmed this to be a problem in Version 1.01. We are
researching this problem and will post new information as it becomes
available.

This message appears only with functions of type void with no
parameters. Because you cannot avoid such constructions if you use
indirect recursion, you cannot work around this problem. However, you
can lower the warning level to two and this problem will not occur.

The following sample code demonstrates this problem:

        void a(void);
        void b(void);

        void a(void)
        {
        }

        void b(void)
        {
          a();
        }

        void main(void)
        {
        }

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.