Skip to content

This patch set fixes a bunch warnings#377

Closed
fidencio wants to merge 11 commits into
SSSD:masterfrom
fidencio:wip/rhel6_warnings
Closed

This patch set fixes a bunch warnings#377
fidencio wants to merge 11 commits into
SSSD:masterfrom
fidencio:wip/rhel6_warnings

Conversation

@fidencio

@fidencio fidencio commented Sep 8, 2017

Copy link
Copy Markdown
Contributor

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.

@fidencio fidencio changed the title This patch set fixes a bunch RHEL6 warnings This patch set fixes a bunch warnings Sep 9, 2017
@fidencio

fidencio commented Sep 9, 2017

Copy link
Copy Markdown
Contributor Author

retest this, please

Comment thread src/providers/ad/ad_gpo.c
/* 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure whether it is the latest version of patch set from #50 because this warning is intentionally here.
And was removed from #50

#50 (comment)

Comment thread src/providers/krb5/krb5_child.c Outdated
password_or_responder(password),
sss_krb5_prompter, kr, 0,
SSSD_KRB5_CHANGEPW_PRINCIPAL,
discard_const(SSSD_KRB5_CHANGEPW_PRINCIPAL),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was agreen in #50 that this patch will not be included
#50 (comment)

Comment thread src/tests/sbus_codegen_tests.c Outdated
START_TEST(test_signals)
{
const struct sbus_signal_meta *signal;
const struct sbus_signal_meta *sm_signal;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer ssm_singal (Sbus Signal Meta) or sgnl sig

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And you kind of agreed in #50 (comment)

Comment thread src/tools/sssctl/sssctl_cache.c Outdated
#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}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check comment #50 (comment)

@lslebodn

Copy link
Copy Markdown
Contributor

There are some patches with initialize some variables to NULL, 0 .. on rhle6
I assume they are caused by old gcc in e6 + combination with -O1. I was enabled due to coverage bug in el6 057f699. I would prefer to drop them

I'm fine with suppressing warnings on el6 with -02

@lslebodn

Copy link
Copy Markdown
Contributor

Thank you for reviving this patchset with fixed warnings

@fidencio

Copy link
Copy Markdown
Contributor Author

@lslebodn, for some reason when I reset the patchset I didn't have the latest version of the patches :-/

Okay, now I have it and will re-work according to your comments.
May I add your patches in PR #371 here as well? (of course, keeping your authorship)

@fidencio

Copy link
Copy Markdown
Contributor Author

I have updated the patch set, now using the correct version of the patches done for PR #50. Also, I have added to this PR one patch from PR #371 that was not part of PR #50.

IMHO, PR #371 should be closed and this one should be reviewed instead.

}
assert_non_null(state->dom);
assert_non_null(recent_dom_info);
recent_dom_info->next = NULL;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this patch has been dropped from this PR.

fidencio and others added 11 commits September 25, 2017 14:52
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]>
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
@fidencio

Copy link
Copy Markdown
Contributor Author

Patch set has been updated addressing @lslebodn's comments.

Thanks for the review.

@lslebodn

lslebodn commented Sep 25, 2017 via email

Copy link
Copy Markdown
Contributor

@lslebodn

Copy link
Copy Markdown
Contributor

ACK

@fidencio

Copy link
Copy Markdown
Contributor Author

@lslebodn, IIRC I saw that in our CI but not on my system.

So, in case I face it again, I'll add it as part of the PR #378.

@lslebodn

Copy link
Copy Markdown
Contributor

retest this please

@lslebodn

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants