Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so Add extra cast to suppress incompatible-po...



details:   https://anonhg.NetBSD.org/src/rev/d3efa64a3a45
branches:  trunk
changeset: 745359:d3efa64a3a45
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Feb 29 18:53:55 2020 +0000

description:
Add extra cast to suppress incompatible-pointer-types GCC warning

diffstat:

 libexec/ld.elf_so/headers.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fd5cebc07d97 -r d3efa64a3a45 libexec/ld.elf_so/headers.c
--- a/libexec/ld.elf_so/headers.c       Sat Feb 29 18:49:53 2020 +0000
+++ b/libexec/ld.elf_so/headers.c       Sat Feb 29 18:53:55 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: headers.c,v 1.66 2020/02/29 04:24:33 kamil Exp $        */
+/*     $NetBSD: headers.c,v 1.67 2020/02/29 18:53:55 kamil Exp $        */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.66 2020/02/29 04:24:33 kamil Exp $");
+__RCSID("$NetBSD: headers.c,v 1.67 2020/02/29 18:53:55 kamil Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -214,7 +214,7 @@
                                nmaskwords = hashtab[2];
                                bloom_size32 = nmaskwords * (ELFSIZE / 32);
 
-                               obj->buckets_gnu = hashtab + 4 + bloom_size32;
+                               obj->buckets_gnu = (const uint32_t *)(hashtab + 4 + bloom_size32);
 
                                nmw_power2 = powerof2(nmaskwords);
 



Home | Main Index | Thread Index | Old Index