Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dev/dtrace/x86 Correct compilation of os...



details:   https://anonhg.NetBSD.org/src/rev/d0fb869167e4
branches:  trunk
changeset: 833040:d0fb869167e4
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 17:16:56 2018 +0000

description:
Correct compilation of osnet/dev/dtrace/x86/dis_tables.c under Clang

Constify dgr_suffix.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>

diffstat:

 external/cddl/osnet/dev/dtrace/x86/dis_tables.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 985a3c17c17c -r d0fb869167e4 external/cddl/osnet/dev/dtrace/x86/dis_tables.c
--- a/external/cddl/osnet/dev/dtrace/x86/dis_tables.c   Wed Jun 06 16:46:02 2018 +0000
+++ b/external/cddl/osnet/dev/dtrace/x86/dis_tables.c   Wed Jun 06 17:16:56 2018 +0000
@@ -2345,7 +2345,7 @@
        uint_t dgr_arg0;        /* src reg */
        uint_t dgr_arg1;        /* vsib reg */
        uint_t dgr_arg2;        /* dst reg */
-       char   *dgr_suffix;     /* suffix to append */
+       const char   *dgr_suffix;       /* suffix to append */
 } dis_gather_regs_t;
 
 static dis_gather_regs_t dis_vgather[4][2][2] = {



Home | Main Index | Thread Index | Old Index