Skip to content

Treematch warnings #5514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rhc54 opened this issue Aug 3, 2018 · 0 comments
Closed

Treematch warnings #5514

rhc54 opened this issue Aug 3, 2018 · 0 comments
Assignees

Comments

@rhc54
Copy link
Contributor

rhc54 commented Aug 3, 2018

In master using gcc-7.3:

topo_treematch_dist_graph_create.c: In function 'mca_topo_treematch_dist_graph_create':
topo_treematch_dist_graph_create.c:288:20: warning: 'depth' may be used uninitialized in this function [-Wmaybe-uninitialized]
             object = hwloc_get_obj_by_depth(opal_hwloc_topology, effective_depth, obj_rank);
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
treematch/tm_tree.c: In function 'group_nodes':
treematch/tm_tree.c:1753:21: warning: variable 'list_size' set but not used [-Wunused-but-set-variable]
   unsigned long int list_size;
                     ^~~~~~~~~
treematch/tm_topology.c: In function 'topology_to_arch':
treematch/tm_topology.c:144:8: warning: argument 1 value '18446744073709551608' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   arch = (double**)MALLOC(sizeof(double*)*nb_proc);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/rhc/openmpi/foobar/opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h:20:0,
                 from /Users/rhc/openmpi/foobar/opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h:2242,
                 from treematch/tm_topology.c:1:
/usr/include/stdlib.h:160:7: note: in a call to allocation function 'malloc' declared here
 void *malloc(size_t __size) __result_use_check __alloc_size(1);
       ^~~~~~
treematch/tm_tree.c: In function 'partial_exhaustive_search':
treematch/tm_tree.c:979:7: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized]
       thread_derecurs_exhaustive_search(tab_group, id+1, n, arity, work->nb_groups, solution_size, val, best_val, selection, best_selection, indep_mat, lock, thread_id, tab_i, work->nb_groups);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bosilca added a commit to bosilca/ompi that referenced this issue Aug 3, 2018
bosilca added a commit to bosilca/ompi that referenced this issue Aug 3, 2018
hjelmn added a commit that referenced this issue Aug 6, 2018
@bosilca bosilca closed this as completed Aug 14, 2018
ggouaillardet pushed a commit to ggouaillardet/ompi that referenced this issue May 11, 2019
Signed-off-by: George Bosilca <[email protected]>

(cherry picked from commit open-mpi/ompi@6d11a45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants