From 245b19c5f69a00f36bb17adbaf0472a45ac06154 Mon Sep 17 00:00:00 2001 From: John Kacur Date: Fri, 9 May 2014 14:12:26 +0200 Subject: [PATCH] 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 --- src/cyclictest/rt_numa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ - return numa_parse_cpustring(s); + return numa_parse_cpustring((char *)s); #endif }