#49627 Compiler warnings
Closed: wontfix 2 years ago by mreynolds. Opened 4 years ago by mreynolds.

Issue Description

Found some compiler warnings we should fix:

tables -fstack-clash-protection -mcet -fcf-protection -c -o src/libsds/test/benchmark_par_sds-benchmark_par.o `test -f 'src/libsds/test/benchmark_par.c' || echo './'`src/libsds/test/benchmark_par.c
BUILDSTDERR: src/libsds/test/benchmark_par.c: In function 'batch_random':
BUILDSTDERR: src/libsds/test/benchmark_par.c: In function 'batch_random':
BUILDSTDERR: src/libsds/test/benchmark_par.c:118:12: warning: 'baseid' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUILDSTDERR: src/libsds/test/benchmark_par.c:118:12: warning: 'baseid' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUILDSTDERR:      size_t baseid;
BUILDSTDERR:      size_t baseid;
BUILDSTDERR:             ^~~~~~
BUILDSTDERR:             ^~~~~~
BUILDSTDERR: src/libsds/test/benchmark_par.c: In function 'batch_insert':
BUILDSTDERR: src/libsds/test/benchmark_par.c: In function 'batch_insert':
BUILDSTDERR: src/libsds/test/benchmark_par.c:191:12: warning: 'baseid' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUILDSTDERR: src/libsds/test/benchmark_par.c:191:12: warning: 'baseid' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUILDSTDERR:      size_t baseid;
BUILDSTDERR:      size_t baseid;
BUILDSTDERR:             ^~~~~~
BUILDSTDERR:             ^~~~~~
BUILDSTDERR: src/libsds/test/benchmark_par.c: In function 'batch_delete':
BUILDSTDERR: src/libsds/test/benchmark_par.c: In function 'batch_delete':
BUILDSTDERR: src/libsds/test/benchmark_par.c:218:12: warning: 'baseid' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUILDSTDERR: src/libsds/test/benchmark_par.c:218:12: warning: 'baseid' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUILDSTDERR:      size_t baseid;
BUILDSTDERR:      size_t baseid;
BUILDSTDERR:             ^~~~~~
BUILDSTDERR:             ^~~~~~
g/test_nuncstans.c' || echo './'`src/nunc-stans/test/test_nuncstans.c
BUILDSTDERR: src/nunc-stans/test/test_nuncstans.c: In function 'ns_job_neg_timeout_test':
BUILDSTDERR: src/nunc-stans/test/test_nuncstans.c: In function 'ns_job_neg_timeout_test':
BUILDSTDERR: src/nunc-stans/test/test_nuncstans.c:416:20: warning: unused variable 'tv' [-Wunused-variable]
BUILDSTDERR: src/nunc-stans/test/test_nuncstans.c:416:20: warning: unused variable 'tv' [-Wunused-variable]
BUILDSTDERR:      struct timeval tv = {-1, 0};
BUILDSTDERR:      struct timeval tv = {-1, 0};
BUILDSTDERR:                     ^~
BUILDSTDERR:                     ^~
BUILDSTDERR: src/nunc-stans/test/test_nuncstans.c:414:26: warning: unused variable 'tp' [-Wunused-variable]
BUILDSTDERR: src/nunc-stans/test/test_nuncstans.c:414:26: warning: unused variable 'tp' [-Wunused-variable]
BUILDSTDERR:      struct ns_thrpool_t *tp = *state;
BUILDSTDERR:      struct ns_thrpool_t *tp = *state;
BUILDSTDERR:                           ^~

../389-ds-base/src/svrcore/src/systemd-ask-pass.c:466:32: warning: ‘vtable’ defined but not used [-Wunused-const-variable=]
 static const SVRCOREPinMethods vtable =
                                ^~~~~~
../389-ds-base/src/svrcore/src/std-systemd.c:232:32: warning: ‘vtable’ defined but not used [-Wunused-const-variable=]
 static const SVRCOREPinMethods vtable =
                                ^~~~~~
../389-ds-base/src/svrcore/src/user.c:32:19: warning: ‘nt_retryWarning’ defined but not used [-Wunused-const-variable=]
 static const char nt_retryWarning[] =
                   ^~~~~~~~~~~~~~~

Package Version and Platform

389-ds-base-1.4.0


These have been cleaned up

Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

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

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2686

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 Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

2 years ago

Login to comment on this ticket.

Metadata