[SSSD] [PATCH] TESTS: fix compiler warnings
Pavel Reichl
preichl at redhat.com
Tue Jul 28 08:16:18 UTC 2015
Hello, please see trivial patch attached which fixes compiler warnings:
> ../src/tests/cmocka/test_sysdb_views.c: In function
> ‘test_sysdb_add_overrides_to_object_local’:
> ../src/tests/cmocka/test_sysdb_views.c:307:33: error: assignment
> discards ‘const’ qualifier from pointer target type
> [-Werror=discarded-qualifiers]
> test_ctx->domain->view_name = "LOCAL";
> ^
> ../src/tests/cmocka/test_sysdb_views.c:288:33: error: unused variable
> ‘el’ [-Werror=unused-variable]
> struct ldb_message_element *el;
> ^
> ../src/tests/cmocka/test_sysdb_views.c: In function
> ‘test_sysdb_add_overrides_to_object_missing_overridedn’:
> ../src/tests/cmocka/test_sysdb_views.c:340:33: error: assignment
> discards ‘const’ qualifier from pointer target type
> [-Werror=discarded-qualifiers]
> test_ctx->domain->view_name = "NON-LOCAL";
> ^
> ../src/tests/cmocka/test_sysdb_views.c:317:33: error: unused variable
> ‘el’ [-Werror=unused-variable]
> struct ldb_message_element *el;
Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TESTS-fix-compiler-warnings.patch
Type: text/x-patch
Size: 2030 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20150728/a9ed0af3/attachment.bin>
More information about the sssd-devel
mailing list