openucx / ucc

Unified Collective Communication Library
https://openucx.github.io/ucc/
BSD 3-Clause "New" or "Revised" License
196 stars 96 forks source link

Minor build issue at ucc_ep_map_is_identity() #892

Closed alex--m closed 8 months ago

alex--m commented 9 months ago
make[3]: Entering directory '/home/alexm/workspace/ucc/src'
  CC       utils/libucc_la-ucc_coll_utils.lo
utils/ucc_coll_utils.c:647:5: error: conflicting types for 'ucc_ep_map_is_identity' due to enum/integer mismatch; have 'int(const ucc_ep_map_t *)' [-Werror=enum-int-mismatch]
  647 | int ucc_ep_map_is_identity(const ucc_ep_map_t *map)
      |     ^~~~~~~~~~~~~~~~~~~~~~
In file included from utils/ucc_coll_utils.c:7:
utils/ucc_coll_utils.h:251:14: note: previous declaration of 'ucc_ep_map_is_identity' with type 'ucc_status_t(const ucc_ep_map_t *)'
  251 | ucc_status_t ucc_ep_map_is_identity(const ucc_ep_map_t *map);
      |              ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:1243: utils/libucc_la-ucc_coll_utils.lo] Error 1
Sergei-Lebedev commented 9 months ago

fixed in this PR https://github.com/openucx/ucc/pull/890