This patch set fixes a bunch warnings#377
Conversation
cd5fdf2 to
3a03571
Compare
|
retest this, please |
| /* If INI_PARSE_IGNORE_NON_KVP is not defined, use 0 (no effect) */ | ||
| #ifndef INI_PARSE_IGNORE_NON_KVP | ||
| #define INI_PARSE_IGNORE_NON_KVP 0 | ||
| #warning INI_PARSE_IGNORE_NON_KVP not defined. |
| password_or_responder(password), | ||
| sss_krb5_prompter, kr, 0, | ||
| SSSD_KRB5_CHANGEPW_PRINCIPAL, | ||
| discard_const(SSSD_KRB5_CHANGEPW_PRINCIPAL), |
There was a problem hiding this comment.
It was agreen in #50 that this patch will not be included
#50 (comment)
| START_TEST(test_signals) | ||
| { | ||
| const struct sbus_signal_meta *signal; | ||
| const struct sbus_signal_meta *sm_signal; |
There was a problem hiding this comment.
I would prefer ssm_singal (Sbus Signal Meta) or sgnl sig
| #define SSSCTL_CACHE_CREATE {_("Cache entry creation date"), SYSDB_CREATE_TIME, attr_time_fn} | ||
| #define SSSCTL_CACHE_UPDATE {_("Cache entry last update time"), SYSDB_LAST_UPDATE, attr_time_fn} | ||
| #define SSSCTL_CACHE_EXPIRE {_("Cache entry expiration time"), SYSDB_CACHE_EXPIRE, attr_expire_fn} | ||
| #define SSSCTL_CACHE_IFP {_("Cached in InfoPipe"), SYSDB_IFP_CACHED, attr_yesno_fn} |
|
There are some patches with initialize some variables to NULL, 0 .. on rhle6 I'm fine with suppressing warnings on el6 with |
|
Thank you for reviving this patchset with fixed warnings |
65e029b to
9d9aae9
Compare
| } | ||
| assert_non_null(state->dom); | ||
| assert_non_null(recent_dom_info); | ||
| recent_dom_info->next = NULL; |
There was a problem hiding this comment.
I could not see such warning in #371 and in was not part of previous patchset.
You might hide some bugs in test. Therefore NACK to this patch.
Rest of patch set is good and can be pushed
There was a problem hiding this comment.
Okay, this patch has been dropped from this PR.
Signed-off-by: Fabiano Fidêncio <[email protected]>
Signed-off-by: Fabiano Fidêncio <[email protected]>
Signed-off-by: Fabiano Fidêncio <[email protected]>
Signed-off-by: Fabiano Fidêncio <[email protected]> Reviewed-by: Lukáš Slebodník <[email protected]>
This warning only happens when building SSSD on RHEL6. Signed-off-by: Fabiano Fidêncio <[email protected]> Reviewed-by: Lukáš Slebodník <[email protected]>
This warning only happens when building SSSD on RHEL6. Signed-off-by: Fabiano Fidêncio <[email protected]>
This warning only happens when building SSSD on RHEL6. Signed-off-by: Fabiano Fidêncio <[email protected]>
As done for the attr_name_fn to avoid "-Wshadow", let's be consistent and do the same for all the other sssctl_attr_fn functions. Signed-off-by: Fabiano Fidêncio <[email protected]>
This warning only happens when building SSSD on RHEL6. Signed-off-by: Fabiano Fidêncio <[email protected]>
Signed-off-by: Fabiano Fidêncio <[email protected]>
src/responder/common/cache_req/cache_req.c: In function 'cache_req_add_result': src/responder/common/cache_req/cache_req.c:587: error: declaration of 'index' shadows a global declaration /usr/include/string.h:489: error: shadowed declaration is here src/responder/nss/nss_cmd.c:387: error: declaration of 'index' shadows a global declaration /usr/include/string.h:489: error: shadowed declaration is here src/responder/nss/nss_cmd.c: In function 'nss_getent_get_result': src/responder/nss/nss_cmd.c:433: error: declaration of 'index' shadows a global declaration /usr/include/string.h:489: error: shadowed declaration is here src/responder/nss/nss_cmd.c: In function 'nss_endent': src/responder/nss/nss_cmd.c:671: error: declaration of 'index' shadows a global declaration /usr/include/string.h:489: error: shadowed declaration is here src/responder/nss/nss_protocol_netgr.c: In function 'nss_protocol_fill_netgrent': src/responder/nss/nss_protocol_netgr.c:113: error: declaration of 'index' shadows a global declaration /usr/include/string.h:489: error: shadowed declaration is here
9d9aae9 to
7487e28
Compare
|
Patch set has been updated addressing @lslebodn's comments. Thanks for the review. |
|
On (25/09/17 12:54), fidencio wrote:
fidencio commented on this pull request.
> @@ -195,7 +195,15 @@ struct sdap_get_initgr_state *prepare_state(struct test_sdap_initgr_ctx *ctx,
}
assert_non_null(state->dom);
assert_non_null(recent_dom_info);
- recent_dom_info->next = NULL;
Okay, this patch has been dropped from this PR.
Do you have an idea why you can see such warning?
but others cannot
LS
|
|
ACK |
|
retest this please |
Those patches were part of PR#50, which got stuck for a long time and ended up closed as it didn't seem interesting for the project.
However, after some time another PR (PR#371) fixes the very same issues. So, I'd like to have my patches (at least) considered and, if possible, reviewed.
In any case, this PR is basically PR#50 without the patch that makes use of gnulib many warnings.