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/storageaddsel.cpp b/storageaddsel.cpp
index 165e9d5..2deb3cb 100644
--- a/storageaddsel.cpp
+++ b/storageaddsel.cpp
@@ -79,7 +79,7 @@
size_t getfilestream(const char *fn, uint8_t **buffer) {
FILE *fp;
- size_t size = 0;
+ ssize_t size = 0;
int r;
if ((fp = fopen(fn, "rb")) != NULL) {
@@ -116,7 +116,7 @@
fclose(fp);
}
- return size;
+ return static_cast<size_t>(size);
}
@@ -234,7 +234,7 @@
const char *sev;
uint8_t *buffer = NULL;
const char *path = "/tmp/esel";
- size_t sz;
+ ssize_t sz;
int r;
sz = getfilestream(path, &buffer);