mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Drop a gcc warning
This commit is contained in:
parent
c1c7566089
commit
3bae0a2d5c
@ -206,11 +206,13 @@ public:
|
|||||||
count=0;
|
count=0;
|
||||||
cycles=0;
|
cycles=0;
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
ssize_t ign;
|
||||||
if ( fd!= -1) {
|
if ( fd!= -1) {
|
||||||
::ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
|
::ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
|
||||||
::ioctl(cyclefd, PERF_EVENT_IOC_DISABLE, 0);
|
::ioctl(cyclefd, PERF_EVENT_IOC_DISABLE, 0);
|
||||||
::read(fd, &count, sizeof(long long));
|
ign=::read(fd, &count, sizeof(long long));
|
||||||
::read(cyclefd, &cycles, sizeof(long long));
|
ign+=::read(cyclefd, &cycles, sizeof(long long));
|
||||||
|
assert(ign=2*sizeof(longlong));
|
||||||
}
|
}
|
||||||
elapsed = cyclecount() - begin;
|
elapsed = cyclecount() - begin;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user