diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-01-20 01:37:56 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-01-20 01:37:56 +0000 |
commit | 831b96303a60eb461a101a1fe777dbea6de62bd6 (patch) | |
tree | bab571707998395a66b3e11f2ba82e5158da48d4 /usr.sbin/pmcstat/pmcstat.c | |
parent | 2bb133e75297f188c25af993fffb76ef3e2db1d8 (diff) | |
download | src-831b96303a60eb461a101a1fe777dbea6de62bd6.tar.gz src-831b96303a60eb461a101a1fe777dbea6de62bd6.zip |
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
Notes
Notes:
svn path=/head/; revision=230350
Diffstat (limited to 'usr.sbin/pmcstat/pmcstat.c')
-rw-r--r-- | usr.sbin/pmcstat/pmcstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c index 8f1320660441..0133119e221d 100644 --- a/usr.sbin/pmcstat/pmcstat.c +++ b/usr.sbin/pmcstat/pmcstat.c @@ -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; |