mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-14 03:33:18 +01:00
Drop a gcc warning
This commit is contained in:
1 parent
c1c7566089
commit
3bae0a2d5c
1 file changed
+4
-2
@@ -206,11 +206,13 @@ public:
|
||||
count=0;
|
||||
cycles=0;
|
||||
#ifdef __linux__
|
||||
ssize_t ign;
|
||||
if ( fd!= -1) {
|
||||
::ioctl(fd, PERF_EVENT_IOC_DISABLE, 0);
|
||||
::ioctl(cyclefd, PERF_EVENT_IOC_DISABLE, 0);
|
||||
::read(fd, &count, sizeof(long long));
|
||||
::read(cyclefd, &cycles, sizeof(long long));
|
||||
ign=::read(fd, &count, sizeof(long long));
|
||||
ign+=::read(cyclefd, &cycles, sizeof(long long));
|
||||
assert(ign=2*sizeof(longlong));
|
||||
}
|
||||
elapsed = cyclecount() - begin;
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user