File sblim-cmpi-dhcp-fix-build-gcc-werror.patch of Package sblim-cmpi-dhcp

Index: sblim-cmpi-dhcp-1.0/hashing/libuniquekey.c
===================================================================
--- sblim-cmpi-dhcp-1.0.orig/hashing/libuniquekey.c
+++ sblim-cmpi-dhcp-1.0/hashing/libuniquekey.c
@@ -237,6 +237,8 @@ void _UQ_insertEntity(char * filename, _
     cptr = fgets(value, 19, fd);
     fclose(fd);
 
+    (void) cptr;	/* make gcc happy */
+
     key = _UQ_strToHex(value);
 
     /** forms the list of new ids to be inserted */
@@ -456,6 +458,8 @@ unsigned long long _UQ_getKeyFromData(ch
 	while(lineno--)
 		read = getline(&linebuf, &len, fd);
 
+	(void) read;	/* make gcc happy */
+
 	fclose(fd);
 	val = _UQ_strToHex(linebuf);
 	if(linebuf)
openSUSE Build Service is sponsored by