Author: eadler
Date: Fri Jan 20 01:37:56 2012
New Revision: 230350
URL: http://svn.freebsd.org/changeset/base/230350

Log:
  Fix warning when compiling with gcc46:
        error: variable 'current_cpu' set but not used
  
  Approved by:  dim, cperciva (mentor, blanket for pre-mentorship 
already-approved commits)
  MFC after:    3 days

Modified:
  head/usr.sbin/pmcstat/pmcstat.c

Modified: head/usr.sbin/pmcstat/pmcstat.c
==============================================================================
--- head/usr.sbin/pmcstat/pmcstat.c     Fri Jan 20 01:37:49 2012        
(r230349)
+++ head/usr.sbin/pmcstat/pmcstat.c     Fri Jan 20 01:37:56 2012        
(r230350)
@@ -551,7 +551,7 @@ main(int argc, char **argv)
        cpuset_t cpumask;
        double interval;
        int hcpu, option, npmc, ncpu;
-       int c, check_driver_stats, current_cpu, current_sampling_count;
+       int c, check_driver_stats, current_sampling_count;
        int do_callchain, do_descendants, do_logproccsw, do_logprocexit;
        int do_print, do_read;
        size_t dummy;
@@ -571,7 +571,6 @@ main(int argc, char **argv)
        char buffer[PATH_MAX];
 
        check_driver_stats      = 0;
-       current_cpu             = 0;
        current_sampling_count  = DEFAULT_SAMPLE_COUNT;
        do_callchain            = 1;
        do_descendants          = 0;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to