summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2014-05-09 14:12:26 +0200
committerJohn Kacur <jkacur@redhat.com>2014-05-09 14:12:26 +0200
commit245b19c5f69a00f36bb17adbaf0472a45ac06154 (patch)
treedbce70d3f4296b0f956ab291317bef62d61c28cd
parent6b6ebd9f0d7469d0e6a459d1524d14e76cd40e11 (diff)
downloadrt-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.h2
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
}