]> andersk Git - splint.git/blame - test/tests2.4/nothing.c
noexpand always false.
[splint.git] / test / tests2.4 / nothing.c
CommitLineData
885824d3 1int main()
2{
3 static void nfunc(void);
4 nfunc();
5 return 0;
6}
7static void nfunc(){}
8
9/*
10From: "Johnson, Nathan E. (AZ76)" <NEJohnson@space.honeywell.com>
11To: "'lclint-bug'" <lclint-bug@salsa.lcs.mit.edu>
12Subject: Mishandling of prototypes stated within functions
13Date: Wed, 26 May 1999 09:00:24 -0700
14Importance: low
15X-Priority: 5
16MIME-Version: 1.0
17X-Mailer: Internet Mail Service (5.5.2448.0)
18Content-Type: text/plain
19
20Using flags:
21+singleinclude
22-warnunixlib
23+unixlib
24
25The following program:
26----------------------------
27int main()
28 {
29 static void nothing(void);
30 nothing();
31 return 0;
32 }
33static void nothing(){}
34
35------------------------------
36yields:
37------------------------------
38LCLint 2.4b --- 18 Apr 98
39
40lbug.c:7:13: File static function nothing declared but not used
41 A function is declared but not used. Use @unused@ in front of function
42 header to suppress message. (-fcnuse will suppress message)
43 lbug.c:7:24: Definition of nothing
44
45Finished LCLint checking --- 1 code error found
46
47*/
This page took 0.080038 seconds and 5 git commands to generate.