[PATCH] Fix warnings in the realmd openlmi provider

Stef Walter stefw at redhat.com
Wed May 8 13:23:42 UTC 2013


Hey guys,

The attached patches fix a bunch of warnings in the openlmi-providers
realmd code.

Cheers,

Stef


[ 11%] Built target openlmicommon
[ 22%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/LMI_HostedRealmdServiceProvider.c.o
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_HostedRealmdServiceProvider.c:5:0:
/data/projects/openlmi-providers/src/globals.h:33:0: warning: "ORGID"
redefined [enabled by default]
 #define ORGID "LMI"
 ^
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_HostedRealmdServiceProvider.c:4:0:
/data/projects/openlmi-providers/src/realmd/rdcp_util.h:12:0: note: this
is the location of the previous definition
 #define ORGID "LMI_Realmd"
 ^
/data/projects/openlmi-providers/src/realmd/LMI_HostedRealmdServiceProvider.c:233:28:
warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
     "instance association");
                            ^
[ 33%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/LMI_RealmdKerberosRealmProvider.c.o
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_RealmdKerberosRealmProvider.c:6:0:
/data/projects/openlmi-providers/src/realmd/rdcp_util.h:12:0: warning:
"ORGID" redefined [enabled by default]
 #define ORGID "LMI_Realmd"
 ^
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_RealmdKerberosRealmProvider.c:3:0:
/data/projects/openlmi-providers/src/globals.h:33:0: note: this is the
location of the previous definition
 #define ORGID "LMI"
 ^
/data/projects/openlmi-providers/src/realmd/LMI_RealmdKerberosRealmProvider.c:627:23:
warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
     "instance method");
                       ^
[ 44%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/LMI_RealmdRealmProvider.c.o
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_RealmdRealmProvider.c:7:0:
/data/projects/openlmi-providers/src/realmd/rdcp_util.h:12:0: warning:
"ORGID" redefined [enabled by default]
 #define ORGID "LMI_Realmd"
 ^
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_RealmdRealmProvider.c:4:0:
/data/projects/openlmi-providers/src/globals.h:33:0: note: this is the
location of the previous definition
 #define ORGID "LMI"
 ^
/data/projects/openlmi-providers/src/realmd/LMI_RealmdRealmProvider.c:326:23:
warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
     "instance method");
                       ^
[ 55%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/LMI_RealmdServiceProvider.c.o
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_RealmdServiceProvider.c:6:0:
/data/projects/openlmi-providers/src/realmd/rdcp_util.h:12:0: warning:
"ORGID" redefined [enabled by default]
 #define ORGID "LMI_Realmd"
 ^
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_RealmdServiceProvider.c:3:0:
/data/projects/openlmi-providers/src/globals.h:33:0: note: this is the
location of the previous definition
 #define ORGID "LMI"
 ^
/data/projects/openlmi-providers/src/realmd/LMI_RealmdServiceProvider.c:631:23:
warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
     "instance method");
                       ^
[ 66%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/LMI_ServiceAffectsRealmdRealmProvider.c.o
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_ServiceAffectsRealmdRealmProvider.c:4:0:
/data/projects/openlmi-providers/src/globals.h:33:0: warning: "ORGID"
redefined [enabled by default]
 #define ORGID "LMI"
 ^
In file included from
/data/projects/openlmi-providers/src/realmd/LMI_ServiceAffectsRealmdRealmProvider.c:3:0:
/data/projects/openlmi-providers/src/realmd/rdcp_util.h:12:0: note: this
is the location of the previous definition
 #define ORGID "LMI_Realmd"
 ^
/data/projects/openlmi-providers/src/realmd/LMI_ServiceAffectsRealmdRealmProvider.c:252:28:
warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
     "instance association");
                            ^
[ 77%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/rdcp_dbus.c.o
/data/projects/openlmi-providers/src/realmd/rdcp_dbus.c:697:1: warning:
‘dbus_method_append_args_tuple’ defined but not used [-Wunused-function]
 dbus_method_append_args_tuple(DBusMessage  *message, GVariant *args,
GError **g_error)
 ^
/data/projects/openlmi-providers/src/realmd/rdcp_dbus.c:777:1: warning:
‘marshal_dbus_dict_string_entry’ defined but not used [-Wunused-function]
 marshal_dbus_dict_string_entry(DBusMessageIter *array, const char
*name, const char *value, GError **g_error)
 ^
[ 88%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/rdcp_error.c.o
[100%] Building C object
src/realmd/CMakeFiles/cmpiLMI_Realmd.dir/rdcp_util.c.o
Linking C shared library libcmpiLMI_Realmd.so
Generating .reg file from library for Realmd
[100%] Built target cmpiLMI_Realmd

15:08:37 Build Finished (took 3s.194ms)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-redefinition-of-ORGID-in-the-realmd-provider.patch
Type: text/x-patch
Size: 2220 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/openlmi-devel/attachments/20130508/0d7cedf9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Remove-extra-semi-colons.patch
Type: text/x-patch
Size: 2601 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/openlmi-devel/attachments/20130508/0d7cedf9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Remove-unused-functions-from-realmd-provider.patch
Type: text/x-patch
Size: 5814 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/openlmi-devel/attachments/20130508/0d7cedf9/attachment-0002.bin>


More information about the openlmi-devel mailing list