svn commit: r250182 - head/sys/dev/hwpmc

Davide Italiano davide at FreeBSD.org
Thu May 2 14:55:22 UTC 2013


Author: davide
Date: Thu May  2 14:55:21 2013
New Revision: 250182
URL: http://svnweb.freebsd.org/changeset/base/250182

Log:
  Suppress a GCC warning. This warning is actually bogus and newer GCC
  versions than the one in base (dim@ mentioned he tried on 4.7.3 and 4.8.1)
  do not whine about it, so, at some point this workaround will be reverted.
  
  Reported by:	ache
  Discussed with:	dim

Modified:
  head/sys/dev/hwpmc/hwpmc_core.c

Modified: head/sys/dev/hwpmc/hwpmc_core.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_core.c	Thu May  2 14:37:23 2013	(r250181)
+++ head/sys/dev/hwpmc/hwpmc_core.c	Thu May  2 14:55:21 2013	(r250182)
@@ -1945,7 +1945,7 @@ iap_allocate_pmc(int cpu, int ri, struct
 	caps = a->pm_caps;
 	if ((IAP_PMC_CAPS & caps) != caps)
 		return (EPERM);
-
+	map = 0;	/* XXX: silent GCC warning */
 	arch = iap_is_event_architectural(pm->pm_event, &map);
 	if (arch == EV_IS_ARCH_NOTSUPP)
 		return (EOPNOTSUPP);


More information about the svn-src-all mailing list