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:
parent
6b6ebd9f0d
commit
245b19c5f6
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue