#1825 Invalid assignment to enum
Closed: Fixed Opened 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,
~~~~~~~^~
../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

  • master: 400833cf54777ad44247c6adaf29b586bc83eb14

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

Fields changed

rhbz: => 0

  • sssd-1-9: 1c27f000477cad14109cc0b1e60186a9e2147457

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

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.

Metadata