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>
This commit is contained in:
John Kacur 2014-05-09 14:12:26 +02:00
parent 6b6ebd9f0d
commit 245b19c5f6
1 changed files with 1 additions and 1 deletions

View File

@ -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
}