Ensure all tools are building with -Wall and -Werror

Corrected resulting compiler errors from correctly adding -Wall &
-Werror within configure.ac.

Change-Id: Ia7aaafa83103322ad4b50171d62144624dd71e42
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/globalhandler.cpp b/globalhandler.cpp
index 9008278..caa94bb 100644
--- a/globalhandler.cpp
+++ b/globalhandler.cpp
@@ -81,10 +81,8 @@
     sd_bus_error error = SD_BUS_ERROR_NULL;
     sd_bus_message *m = 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) {