#1825 Invalid assignment to enum
Closed: Fixed None Opened 11 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

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2867

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata