Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* elf/dblloadmod1.c: Add prototype to avoid warning.
* 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.
  • Loading branch information
Andreas Jaeger committed Dec 21, 2001
1 parent 37de3d5 commit a49d017
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions elf/dblloadmod1.c
@@ -1,4 +1,5 @@
extern int bar (void);
extern int foo (void);

int
foo (void)
Expand Down
2 changes: 2 additions & 0 deletions elf/dblloadmod2.c
@@ -1,4 +1,6 @@
extern int bar (void);
extern int baz (void);
extern int xyzzy (void);

int
baz (void)
Expand Down
1 change: 1 addition & 0 deletions elf/dblloadmod3.c
@@ -1,3 +1,4 @@
extern int bar (void);
extern int baz (void);

int
Expand Down
4 changes: 3 additions & 1 deletion elf/dl-conflict.c
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions elf/reldepmod5.c
@@ -1,3 +1,5 @@
extern int foo (void);

int
foo (void)
{
Expand Down
1 change: 1 addition & 0 deletions elf/reldepmod6.c
@@ -1,4 +1,5 @@
extern int call_me (void);
extern int bar (void);

int
bar (void)
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/svc_tcp.c
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/svc_unix.c
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/generic/strstr.c
Expand Up @@ -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 */
Expand Down

0 comments on commit a49d017

Please sign in to comment.