[PATCH phosphor-host-ipmid 3/3] Remove unused variable warnings
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue Mar 15 14:20:32 AEDT 2016
From: Cyril Bur <cyril.bur at au1.ibm.com>
Output from GCC:
globalhandler.C: In function 'int dbus_warm_reset()':
globalhandler.C:84:11: warning: unused variable 'temp_buf' [-Wunused-variable]
char* temp_buf = NULL;
^
globalhandler.C:85:14: warning: unused variable 'get_value' [-Wunused-variable]
uint8_t* get_value = NULL;
^
globalhandler.C:87:12: warning: unused variable 'i' [-Wunused-variable]
int r, i;
^
---
globalhandler.C | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/globalhandler.C b/globalhandler.C
index 0087455..7318969 100644
--- a/globalhandler.C
+++ b/globalhandler.C
@@ -80,10 +80,8 @@ int dbus_warm_reset()
{
sd_bus_error error = SD_BUS_ERROR_NULL;
sd_bus *bus = NULL;
- char* temp_buf = NULL;
- uint8_t* get_value = NULL;
char* connection = NULL;
- int r, i;
+ int r;
r = obj_mapper_get_connection(&connection, control_object_name);
if (r < 0) {
--
2.7.1
More information about the openbmc
mailing list