× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Why Warning?
  • From: "Leif Svalgaard" <leif@xxxxxxxx>
  • Date: Tue, 16 Jan 2001 22:39:11 -0600

Folks, the following program works, but why do I get the warning?

5769CX2 V4R4M0  990521   ILE C for AS/400        LSVALGAARD/BAD  AS400
01/16/01 22:21:05     Page     1
                                                * * * * *   P R O L O G   *
* * * *
 Module  . . . . . . . . . . . . :   BAD
   Library . . . . . . . . . . . :      LSVALGAARD
 Source file . . . . . . . . . . :   QCSRC
   Library . . . . . . . . . . . :      LSVALGAARD
 Source member . . . . . . . . . :   BAD
 Source stream file  . . . . . . :
 Text Description  . . . . . . . :   Weird Warning
 Output  . . . . . . . . . . . . :   *PRINT
 Compiler options  . . . . . . . :   *NOAGR   *NOEXPMAC   *GEN   *LOGMSG
                                                   *NOPPONLY   *NOSECLVL
                                 :                 *NOSHOWINC   *NOSHOWSKP
*NOXREF
*USRINCPATH
 Checkout options  . . . . . . . :   *NOACCURACY   *NOENUM   *NOEXTERN
                                                   *NOGENERAL   *NOGOTO
*NOINIT
                                                :   *NOPARM   *NOPORT
*NOPPCHECK  *NOPPTRACE
 Optimization  . . . . . . . . . :   *NONE
 Inline options:
   Inliner . . . . . . . . . . . :   *OFF
   Mode  . . . . . . . . . . . . :   *NOAUTO
   Threshold . . . . . . . . . . :   250
   Limit . . . . . . . . . . . . :   2000
   Report  . . . . . . . . . . . :   *NO
 Module Creation Options . . . . :   *NOKEEPILDTA
 Debugging view  . . . . . . . . :   *ALL
 Define names  . . . . . . . . . :
 Language level  . . . . . . . . :   *SOURCE
 System interface options  . . . :   *NOIFSIO
 Locale object type  . . . . . . :   *CLD
 Source margins:
   Left margin . . . . . . . . . :   1
   Right margin  . . . . . . . . :   32754
 Sequence columns:
   Left Column . . . . . . . . . :
   Right Column  . . . . . . . . :
 Message flagging level  . . . . :   0
 Compiler messages:
   Message limit . . . . . . . . :   *NOMAX
   Message limit severity  . . . :   30
 Replace module object . . . . . :   *YES
 Authority . . . . . . . . . . . :   *LIBCRTAUT
 Target release  . . . . . . . . :   *CURRENT
 System includes . . . . . . . . :   *YES
 Performance collection  . . . . :   *PEP
 Performance options . . . . . . :   *SETFPCA   *NOSTRDONLY
 Profiling data  . . . . . . . . :   *NOCOL
 Teraspace options . . . . . . . :   *NO
 Last change . . . . . . . . . . :   01/16/01 22:21:02
 Source description  . . . . . . :   Weird Warning
 Compiler  . . . . . . . . . . . :   IBM ILE C for AS/400 Compiler
5769CX2 V4R4M0  990521   ILE C for AS/400        LSVALGAARD/BAD   AS400
01/16/01 22:21:05     Page     2
                                                * * * * *   S O U R C E   **
* * *
 Line  STMT
SEQNBR   INCNO

*...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+..
...8....+....9........
    1       |#include <stdio.h>
    2       |void f();
    3       |
    4       |main() {
    5       |  f();
===========>...a.............................................................
...................................
*=Warning=========> a - CZM0185 Function f has not been prototyped prior to
use.
    6       |}
    7       |
    8       |void f() {
    9       |  printf("hello\n");
  10       |}
                                         * * * * *   E N D   O F   S O U R CE
* * * * *
5769CX2 V4R4M0  990521   ILE C for AS/400        LSVALGAARD/BAD  AS400
01/16/01 22:21:05     Page     3
                                              * * * * *   I N C L U D E S  *
* * * *
INCNBR  Include Name                     Last change        Actual Include
Name
    1   stdio.h                          12/10/98 14:21:13  QCLE/H/STDIO
                                      * * * * *   E N D   O F   I N C L U DE
S   * * * * *
5769CX2 V4R4M0  990521   ILE C for AS/400        LSVALGAARD/BAD  AS400
01/16/01 22:21:05     Page     4
                                              * * * * *   M E S S A G E S  *
* * * *
MSG ID      SEV     Text
                    (<SEQNBR>-<FILE NO>:<FILE LINE NO>)
CZM0185     10      Function  has not been prototyped prior to use.( 5-0:5 )
                                      * * * * *   E N D   O F   M E S S A G E
S   * * * * *
5769CX2 V4R4M0  990521   ILE C for AS/400        LSVALGAARD/BAD AS400
01/16/01 22:21:05     Page     5
                                       * * * * *   M E S S A G E   S U M M AR
Y   * * * * *
        Total            Informational(00)          Warning(10)
Error(30)            Severe Error(40)
          1                    0                        1
0                              0
                               * * * * *   E N D   O F   M E S S A G E   S UM
M A R Y   * * * * *
Module BAD was created in library LSVALGAARD on 01/16/01 at 22:21:07 .
                                   * * * * *   E N D   O F   C O M P I L A T
I O N   * * * * *





+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.