diff options
author | John Kacur <jkacur@redhat.com> | 2014-05-09 14:12:26 +0200 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2014-05-09 14:12:26 +0200 |
commit | 245b19c5f69a00f36bb17adbaf0472a45ac06154 (patch) | |
tree | dbce70d3f4296b0f956ab291317bef62d61c28cd | |
parent | 6b6ebd9f0d7469d0e6a459d1524d14e76cd40e11 (diff) | |
download | rt-tests-245b19c5f69a00f36bb17adbaf0472a45ac06154.tar.gz |
rt_numa.h: Suppress discards 'const' qualifier warning
In rt-tests we try to use const where appropriate for read-only, but
we need to tell the compiler we are intentionally discarding const
when calling library functions that expect char *
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/cyclictest/rt_numa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h index e64c446..60a1437 100644 --- a/src/cyclictest/rt_numa.h +++ b/src/cyclictest/rt_numa.h @@ -101,7 +101,7 @@ static inline struct bitmask* rt_numa_parse_cpustring(const char* s, * libnuma do not have this function. A work around should be to run * your command with e.g. taskset -c 9-15 <command> */ - return numa_parse_cpustring(s); + return numa_parse_cpustring((char *)s); #endif } |