Debian Codegraph @

stubdom/newlib-cygmon-gmon.patch

raw
1
2 I: A function uses a 'return;' statement, but has actually a value
3 to return, like an integer ('return 42;') or similar.
4 W: xen voidreturn ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:117, 125, 146, 157, 330
5
6 I: Program is using implicit definitions of special functions.
7 these functions need to use their correct prototypes to allow
8 the lightweight buffer overflow checking to work.
9 - Implicit memory/string functions need #include <string.h>.
10 - Implicit *printf functions need #include <stdio.h>.
11 - Implicit *printf functions need #include <stdio.h>.
12 - Implicit *read* functions need #include <unistd.h>.
13 - Implicit *recv* functions need #include <sys/socket.h>.
14 E: xen implicit-fortify-decl ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:119
15
16 I: Program returns random data in a function
17 E: xen no-return-in-nonvoid-function ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:362
18
19 ---
20 libgloss/i386/cygmon-gmon.c | 6 +++++-
21 1 file changed, 5 insertions(+), 1 deletion(-)
22
23 Index: newlib-1.16.0/libgloss/i386/cygmon-gmon.c
24 ===================================================================
25 --- newlib-1.16.0.orig/libgloss/i386/cygmon-gmon.c
26 +++ newlib-1.16.0/libgloss/i386/cygmon-gmon.c
27 @@ -61,6 +61,8 @@
28 static char sccsid[] = "@(#)gmon.c 5.3 (Berkeley) 5/22/91";
29 #endif /* not lint */
30
31 +#include <string.h>
32 +#include <unistd.h>
33 #define DEBUG
34 #ifdef DEBUG
35 #include <stdio.h>
36 @@ -89,7 +91,7 @@ static int s_scale;
37
38 extern int errno;
39
40 -int
41 +void
42 monstartup(lowpc, highpc)
43 char *lowpc;
44 char *highpc;
45 @@ -199,6 +201,7 @@ _mcleanup()
46
47 static char already_setup = 0;
48
49 +void
50 _mcount()
51 {
52 register char *selfpc;
53 @@ -341,6 +344,7 @@ overflow:
54 * profiling is what mcount checks to see if
55 * all the data structures are ready.
56 */
57 +void
58 moncontrol(mode)
59 int mode;
60 {