PERFORCE change 127669 for review
John Birrell
jb at FreeBSD.org
Wed Oct 17 22:37:59 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127669
Change 127669 by jb at 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);
}
More information about the p4-projects
mailing list