#1825 Invalid assignment to enum
Closed: Fixed None Opened 6 years ago by lslebodn.

Compiler clang throws 2 warnings


../sssd/src/responder/sudo/sudosrv_get_sudorules.c:373:71: warning: implicit conversion from enumeration type 'enum sss_sudo_type' to different enumeration type 'enum sss_dp_sudo_type' [-Wconversion]
cmd_ctx->domain, cmd_ctx->type,
<s>~~~^~</s>
../sssd/src/responder/sudo/sudosrv_get_sudorules.c:580:71: warning: implicit conversion from enumeration type 'enum sss_sudo_type' to different enumeration type 'enum sss_dp_sudo_type' [-Wconversion]
cmd_ctx->domain, cmd_ctx->type,


Function sudosrv_get_sudorules_query_cache() expects "enum sss_dp_sudo_type"
but type of cmd_ctx->type is "enum sss_sudo_type".


'type' parameter of sudosrv_get_sudorules_query_cache() is unused. You can safely remove it.

Fields changed

owner: somebody => lslebodn

milestone: NEEDS_TRIAGE => SSSD 1.10 beta
resolution: => fixed
status: new => closed

Fields changed

rhbz: => 0

changelog: =>
review: => 0

Fields changed

changelog: => N/A, just a bugfix

Metadata Update from @lslebodn:
- Issue assigned to lslebodn
- Issue set to the milestone: SSSD 1.10 beta

2 years ago

Login to comment on this ticket.

Metadata