[SSSD] [PATCH] sbus_codegen_tests: Suppress warning Wmaybe-uninitialized

Lukas Slebodnik lslebodn at redhat.com
Wed Nov 11 07:34:21 UTC 2015


On (26/10/15 16:03), Lukas Slebodnik wrote:
>On (26/10/15 14:42), Pavel Březina wrote:
>>On 10/26/2015 02:29 PM, Lukas Slebodnik wrote:
>>>ehlo,
>>>
>>>even thought I thing it is a false positive
>>>it is not bad idea to initialize pointer to NULL.
>>>And it's just a test.
>>>
>>>You can see a warning on el7
>>>e.g.
>>>http://sssd-ci.duckdns.org/logs/job/31/36/rhel7/ci-build-debug/ci-make-tests.log
>>>
>>>Simple patch is attached.
>>>
>>>LS
>>
>>Ack.
>>
>
>CI: http://sssd-ci.duckdns.org/logs/job/31/39/summary.html
>
>warning is gone
>http://sssd-ci.duckdns.org/logs/job/31/39/rhel7/ci-build-debug/ci-make-tests.log
>
>master:
>* 617d5161d4ec454afc673ce1836b02f82435b347
>

I can see a warning in mock on epel6
http://sssd-ci.duckdns.org/logs/job/32/62/rhel6/ci-build-debug/ci-mock-result/build.log

src/tests/sbus_codegen_tests.c: In function 'test_get_array_dict_sas':
src/tests/sbus_codegen_tests.c:1131: warning: 'exp_values' may be used uninitialized in this function

sssd-1-13:
* 0ff0d8604ef170583aee469c628467dcd3bd2ee6

LS


More information about the sssd-devel mailing list