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/4fbd77bf9478
branches:  trunk
changeset: 969745:4fbd77bf9478
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 ceebcf0fbab0 -r 4fbd77bf9478 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