From 2071e3510abcb0d23655e9ec6f21ded8a0d7fa8a Mon Sep 17 00:00:00 2001 From: benl Date: Sat, 18 Jun 2011 13:56:33 +0000 Subject: Fix clang warnings. Approved by: philip (mentor) --- contrib/binutils/ld/sysdep.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/binutils/ld/sysdep.h') diff --git a/contrib/binutils/ld/sysdep.h b/contrib/binutils/ld/sysdep.h index 4c5e994..2ee2047 100644 --- a/contrib/binutils/ld/sysdep.h +++ b/contrib/binutils/ld/sysdep.h @@ -54,6 +54,9 @@ extern char *strrchr (); /* for MAXPATHLEN */ #ifdef HAVE_SYS_PARAM_H #include +#ifndef __PAST_END +# define __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset]) +#endif #endif #ifdef PATH_MAX # define LD_PATHMAX PATH_MAX -- cgit v1.1