Date: Thu, 18 Oct 2007 05:37:58 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127669 for review Message-ID: <200710180537.l9I5bwRn007793@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127669 Change 127669 by jb@jb_freebsd1 on 2007/10/18 05:37:47 Fix compiler warnings for WARNS=6. Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_impl.h#13 edit .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_map.c#6 edit .. //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/common/list.c#3 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_impl.h#13 (text) ==== @@ -41,6 +41,7 @@ #include <sys/utsname.h> #include <sys/ioccom.h> #include <sys/time.h> +#include <string.h> #endif #include <setjmp.h> #include <libctf.h> ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_map.c#6 (text) ==== @@ -375,7 +375,7 @@ * provide the compiler-generated aggregation information. */ if (dtp->dt_options[DTRACEOPT_GRABANON] == DTRACEOPT_UNSET && - agg->dtagd_rec[0].dtrd_uarg != NULL) { + agg->dtagd_rec[0].dtrd_uarg != 0) { dtrace_stmtdesc_t *sdp; dt_ident_t *aid; ==== //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/common/list.c#3 (text) ==== @@ -70,7 +70,7 @@ /*ARGSUSED2*/ static int -list_defcmp(void *d1, void *d2, void *private) +list_defcmp(void *d1, void *d2, void *private __unused) { return (d1 != d2); } @@ -135,7 +135,7 @@ /*ARGSUSED*/ static int -list_count_cb(void *data, void *private) +list_count_cb(void *data __unused, void *private __unused) { return (1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710180537.l9I5bwRn007793>