Task #91647 - added.err

back to task #91647
download
Error: COMPILER_WARNING:
numad-0.5git/numad.c: scope_hint: In function ‘numad_log’
numad-0.5git/numad.c:155:5: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 4096 equals destination size
#  155 |     strncpy(buf, ctime(&ts), sizeof(buf));
#      |     ^
#  153|       char buf[BIG_BUF_SIZE];
#  154|       time_t ts = time(NULL);
#  155|->     strncpy(buf, ctime(&ts), sizeof(buf));
#  156|       char *p = &buf[strlen(buf) - 1];
#  157|       *p++ = ':';

Error: COMPILER_WARNING:
numad-0.5git/numad.c: scope_hint: In function ‘pick_numa_nodes’
numad-0.5git/numad.c:1923:14: warning[-Wunused-but-set-variable=]: variable ‘sum_of_node_CPUs_free’ set but not used
# 1923 |     uint64_t sum_of_node_CPUs_free = 0;
#      |              ^~~~~~~~~~~~~~~~~~~~~
# 1921|       memcpy(tmp_node, node, num_nodes * sizeof(node_data_t) );
# 1922|       // Adjust how many MBs and CPUs are available per node and calculate the node magnitude
# 1923|->     uint64_t sum_of_node_CPUs_free = 0;
# 1924|       for (int ix = 0;  (ix < num_nodes);  ix++) {
# 1925|           if (pid > 0) {