This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Warning patch installed



FYI, I've committed the appended patch to remove some warnings.

Andreas

2001-04-06  Andreas Jaeger  <aj@suse.de>

	* include/sys/profil.h: New file.

	* dlfcn/modatexit.c: Add prototypes to silence GCC.
	* dlfcn/modcxaatexit.c: Likewise.
	* elf/globalmod1.c: Likewise.

============================================================
Index: dlfcn/modatexit.c
--- dlfcn/modatexit.c	2001/02/26 17:41:11	1.1
+++ dlfcn/modatexit.c	2001/04/06 14:13:49
@@ -22,6 +22,9 @@
 int global;
 int *ip;
 
+extern void dummy (void);
+extern void foo (void *p);
+
 void
 dummy (void)
 {
============================================================
Index: dlfcn/modcxaatexit.c
--- dlfcn/modcxaatexit.c	2001/02/26 17:41:22	1.1
+++ dlfcn/modcxaatexit.c	2001/04/06 14:13:49
@@ -19,8 +19,10 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-int global;
+extern void fluffy (void *p);
+extern void bar (void *p);
 
+int global;
 
 void
 fluffy (void *p)
============================================================
Index: elf/globalmod1.c
--- elf/globalmod1.c	2001/03/04 19:50:26	1.1
+++ elf/globalmod1.c	2001/04/06 14:13:49
@@ -1,6 +1,8 @@
 #include <dlfcn.h>
 #include <stdio.h>
 
+extern int test (void);
+
 int
 test (void)
 {
============================================================
Index: include/sys/profil.h
--- include/sys/profil.h	created
+++ include/sys/profil.h	Fri Apr  6 16:06:28 2001	1.1
@@ -0,0 +1,9 @@
+#ifndef _PROFIL_H
+#include <gmon/sys/profil.h>
+
+/* Now define the internal interfaces.  */
+
+extern int __sprofil (struct prof *__profp, int __profcnt,
+		      struct timeval *__tvp, unsigned int __flags);
+
+#endif /* _PROFIL_H */

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]