forked from numactl/numactl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libnuma: numa_parse_cpustring and similar should take a const char* p…
…arameter Input string is handled like it was a const and it doesn't actually modify the string that it is parsing. It raises warning with following C++ reproducer: using namespace std; int main (int argc, char **argv) { bitmask *pbm = numa_allocate_cpumask(); pbm = numa_bitmask_clearall(pbm); if ((pbm = numa_parse_cpustring("2-5,8,10")) != NULL) { cout << " cpumask bitmask 2-5,8,10 = "; for (int n=0;n<numa_num_configured_cpus();++n) { cout << numa_bitmask_isbitset(pbm, n); } cout << endl; } } Signed-off-by: Petr Holasek <pholasek@redhat.com>
- Loading branch information
1 parent
69484c9
commit 2255817
Showing
5 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters