diff options
author | Richard Henderson <rth@twiddle.net> | 2010-03-26 09:16:21 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2010-03-26 09:16:21 -0700 |
commit | b1c1949e60e7c61bcd9f40f712d07494596491b2 (patch) | |
tree | 84648ee4af35a882c7885d9cc6634d3c1639458b /csu/gmon-start.c | |
parent | 07f9ca32a96891c90cb80aee780c8cee2c9504e4 (diff) | |
download | glibc-b1c1949e60e7c61bcd9f40f712d07494596491b2.tar.gz glibc-b1c1949e60e7c61bcd9f40f712d07494596491b2.tar.xz glibc-b1c1949e60e7c61bcd9f40f712d07494596491b2.zip |
Don't take the address of a void object.
GCC 4.5 warns about "extern void _end; &end;". Use char[] instead, as that also doesn't fall foul of a target's .sdata optimizations. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'csu/gmon-start.c')
-rw-r--r-- | csu/gmon-start.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csu/gmon-start.c b/csu/gmon-start.c index d11c9b9532..7d585e135f 100644 --- a/csu/gmon-start.c +++ b/csu/gmon-start.c @@ -31,9 +31,9 @@ #ifdef ENTRY_POINT_DECL ENTRY_POINT_DECL(extern) #else -extern void ENTRY_POINT; +extern char ENTRY_POINT[]; #endif -extern void etext; +extern char etext[]; #ifndef TEXT_START # ifdef ENTRY_POINT_DECL |