]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/dblloadmod1.c: Add prototype to avoid warning.
authorAndreas Jaeger <aj@suse.de>
Fri, 21 Dec 2001 10:16:16 +0000 (10:16 +0000)
committerAndreas Jaeger <aj@suse.de>
Fri, 21 Dec 2001 10:16:16 +0000 (10:16 +0000)
* elf/dblloadmod2.c: Likewise.
* elf/dblloadmod3.c: Likewise.
* elf/reldepmod5.c: Likewise.
* elf/reldepmod6.c: Likewise.
* elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
used on all architectures.

* sunrpc/svc_tcp.c: Add noreturn attribute for
svctcp_rendezvous_abort.
* sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.

* sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
to avoid warning.

elf/dblloadmod1.c
elf/dblloadmod2.c
elf/dblloadmod3.c
elf/dl-conflict.c
elf/reldepmod5.c
elf/reldepmod6.c
sunrpc/svc_tcp.c
sunrpc/svc_unix.c
sysdeps/generic/strstr.c

index b10f366ee9c4d734d8c8e9b802e3348d9d466b30..ecec29ec636dd7292aebaad0b62e2d9921f82fd8 100644 (file)
@@ -1,4 +1,5 @@
 extern int bar (void);
+extern int foo (void);
 
 int
 foo (void)
index 261af2b58054204aac72d292ee1637a0662d85be..3e20aa941bf18f96ec18a53a714569ca5fc20b1e 100644 (file)
@@ -1,4 +1,6 @@
 extern int bar (void);
+extern int baz (void);
+extern int xyzzy (void);
 
 int
 baz (void)
index 22b8a048110e4feeb9a26f3027d0951d2fa0f71e..80ac3a63753d1f1be39e8fa59b031caf89b6eb2c 100644 (file)
@@ -1,3 +1,4 @@
+extern int bar (void);
 extern int baz (void);
 
 int
index 5426a5ad442bfb186a55fcef4b83bc1a6a36d90f..f4c20eaad07e4b1269406b9f1d92725a85c0c624 100644 (file)
@@ -54,7 +54,9 @@ do                                                            \
     (map) = resolve_conflict_map;                              \
   } while (0)
 
-    struct link_map *resolve_conflict_map = _dl_loaded;
+    struct link_map *resolve_conflict_map __attribute__ ((__unused__))
+      = _dl_loaded;
+    
 
 #include "dynamic-link.h"
 
index eae70da1e29a1692618af1db9f8a53301c3598b7..62df6971626af8be9ae23154b05e3eded359f6d0 100644 (file)
@@ -1,3 +1,5 @@
+extern int foo (void);
+
 int
 foo (void)
 {
index 95c18d4cdbceff62c3d1470d550b8b9560f89f49..cd2aeb400dc91dde43da3208b0f93bcfeb41f1bb 100644 (file)
@@ -1,4 +1,5 @@
 extern int call_me (void);
+extern int bar (void);
 
 int
 bar (void)
index cda2484b6f991efa461a22be42aa9144d5a0d90b..8249474a57be4612f51524608006d1ad73e5e837 100644 (file)
@@ -82,7 +82,7 @@ static const struct xp_ops svctcp_op =
  */
 static bool_t rendezvous_request (SVCXPRT *, struct rpc_msg *);
 static enum xprt_stat rendezvous_stat (SVCXPRT *);
-static void svctcp_rendezvous_abort (void);
+static void svctcp_rendezvous_abort (void) __attribute__ ((__noreturn__));
 
 /* This function makes sure abort() relocation goes through PLT
    and thus can be lazy bound.  */
index 72bc9c2ddaabc6d0d4fb45e6e2bd788fb0951808..763021f9a47d024f28d5eef7fed43dd9bb729636 100644 (file)
@@ -78,7 +78,7 @@ static const struct xp_ops svcunix_op =
  */
 static bool_t rendezvous_request (SVCXPRT *, struct rpc_msg *);
 static enum xprt_stat rendezvous_stat (SVCXPRT *);
-static void svcunix_rendezvous_abort (void);
+static void svcunix_rendezvous_abort (void) __attribute__ ((__noreturn__));
 
 /* This function makes sure abort() relocation goes through PLT
    and thus can be lazy bound.  */
index ff295e0635a22e5b21ec3e3de22396d490025f92..e7e14e498d0ede3926f478d2e860c74ab00c69d3 100644 (file)
@@ -49,7 +49,7 @@ strstr (phaystack, pneedle)
 
   haystack = (const unsigned char *) phaystack;
 
-  if (b = *(needle = (const unsigned char *) pneedle))
+  if ((b = *(needle = (const unsigned char *) pneedle)))
     {
       chartype c;
       haystack--;              /* possible ANSI violation */