Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD: Clear compilation alarms. #6610

Closed
HelloCarry opened this issue Mar 7, 2023 · 1 comment
Closed

BUILD: Clear compilation alarms. #6610

HelloCarry opened this issue Mar 7, 2023 · 1 comment
Labels
Closed: Fixed Issue was closed as fixed. Future work

Comments

@HelloCarry
Copy link
Contributor

HelloCarry commented Mar 7, 2023

I encountered an alarm when I was doing the build.The alarm information is as follows:

gcc -DHAVE_CONFIG_H -I. -I/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/..  -Wall -I.. -I/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/sss_client -I/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src -I.      -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include         -DLIBDIR=\"/tmp/sssd-intg.bxs05iqA/lib\" -DVARDIR=\"/tmp/sssd-intg.bxs05iqA/var\" -DSSS_STATEDIR=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss\" -DSYSCONFDIR=\"/tmp/sssd-intg.bxs05iqA/etc\" -DSHLIBEXT=\"\" -DSSSDDATADIR=\"/tmp/sssd-intg.bxs05iqA/share/sssd\" -DSSSD_LIBEXEC_PATH=\"/tmp/sssd-intg.bxs05iqA/libexec/sssd\" -DSSSD_CONF_DIR=\"/tmp/sssd-intg.bxs05iqA/etc/sssd\" -DSSS_NSS_MCACHE_DIR=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/mc\" -DSSS_NSS_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/nss\" -DSSS_PAM_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/pam\" -DSSS_PAC_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/pac\" -DSSS_PAM_PRIV_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/private/pam\" -DSSS_SUDO_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/sudo\" -DSSS_AUTOFS_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/autofs\" -DSSS_SSH_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/ssh\" -DLOCALEDIR=\"/tmp/sssd-intg.bxs05iqA/share/locale\" -DBASE_FILE_STEM=\"gpo_child-ad_gpo_child\"    -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wundef -Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs -fno-strict-aliasing -std=gnu99    -I/usr/include/samba-4.0  -O2 -g  -fprofile-arcs -ftest-coverage -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -MT src/providers/ad/gpo_child-ad_gpo_child.o -MD -MP -MF src/providers/ad/.deps/gpo_child-ad_gpo_child.Tpo -c -o src/providers/ad/gpo_child-ad_gpo_child.o `test -f 'src/providers/ad/ad_gpo_child.c' || echo '/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../'`src/providers/ad/ad_gpo_child.c
In file included from /root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/util/util.h:42,
                 from /root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/providers/ad/ad_gpo_child.c:34:
/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/providers/ad/ad_gpo_child.c: In function ‘main’:
/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/shared/safealign.h:57:25: warning: ‘sysvol_gpt_version’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   57 |     type CV_MACRO_val = (type)(value); \
      |                         ^
/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/providers/ad/ad_gpo_child.c:663:9: note: ‘sysvol_gpt_version’ was declared here
  663 |     int sysvol_gpt_version;
      |         ^~~~~~~~~~~~~~~~~~
mv -f src/providers/ad/.deps/gpo_child-ad_gpo_child.Tpo src/providers/ad/.deps/gpo_child-ad_gpo_child.Po
gcc -DHAVE_CONFIG_H -I. -I/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/..  -Wall -I.. -I/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src/sss_client -I/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../src -I.      -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include         -DLIBDIR=\"/tmp/sssd-intg.bxs05iqA/lib\" -DVARDIR=\"/tmp/sssd-intg.bxs05iqA/var\" -DSSS_STATEDIR=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss\" -DSYSCONFDIR=\"/tmp/sssd-intg.bxs05iqA/etc\" -DSHLIBEXT=\"\" -DSSSDDATADIR=\"/tmp/sssd-intg.bxs05iqA/share/sssd\" -DSSSD_LIBEXEC_PATH=\"/tmp/sssd-intg.bxs05iqA/libexec/sssd\" -DSSSD_CONF_DIR=\"/tmp/sssd-intg.bxs05iqA/etc/sssd\" -DSSS_NSS_MCACHE_DIR=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/mc\" -DSSS_NSS_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/nss\" -DSSS_PAM_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/pam\" -DSSS_PAC_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/pac\" -DSSS_PAM_PRIV_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/private/pam\" -DSSS_SUDO_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/sudo\" -DSSS_AUTOFS_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/autofs\" -DSSS_SSH_SOCKET_NAME=\"/tmp/sssd-intg.bxs05iqA/var/lib/sss/pipes/ssh\" -DLOCALEDIR=\"/tmp/sssd-intg.bxs05iqA/share/locale\" -DBASE_FILE_STEM=\"gpo_child-atomic_io\"    -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wundef -Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs -fno-strict-aliasing -std=gnu99    -I/usr/include/samba-4.0  -O2 -g  -fprofile-arcs -ftest-coverage -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -MT src/util/gpo_child-atomic_io.o -MD -MP -MF src/util/.deps/gpo_child-atomic_io.Tpo -c -o src/util/gpo_child-atomic_io.o `test -f 'src/util/atomic_io.c' || echo '/root/rpmbuild/BUILD/sssd-2.6.1/intg_build/../'`src/util/atomic_io.c
HelloCarry added a commit to HelloCarry/sssd that referenced this issue Mar 8, 2023
HelloCarry added a commit to HelloCarry/sssd that referenced this issue Mar 11, 2023
@pbrezina
Copy link
Member

Pushed PR: #6609

  • master
    • 42594c3 - fix sysvol_gpt_version may be used uninitialized

@pbrezina pbrezina added the Closed: Fixed Issue was closed as fixed. label Mar 23, 2023
justin-stephenson pushed a commit to justin-stephenson/sssd that referenced this issue Mar 27, 2023
Resolves: SSSD#6610

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: Fixed Issue was closed as fixed. Future work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants