From 8b4700521afc5760474fc82ebeb861c2c84118da Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Wed, 21 Sep 2016 10:02:57 -0500 Subject: 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 --- storageaddsel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'storageaddsel.cpp') diff --git a/storageaddsel.cpp b/storageaddsel.cpp index 165e9d5..2deb3cb 100644 --- a/storageaddsel.cpp +++ b/storageaddsel.cpp @@ -79,7 +79,7 @@ int find_sensor_type_string(uint8_t sensor_number, char **s) { 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: fclose(fp); } - return size; + return static_cast(size); } @@ -234,7 +234,7 @@ void send_esel(uint16_t recordid) { const char *sev; uint8_t *buffer = NULL; const char *path = "/tmp/esel"; - size_t sz; + ssize_t sz; int r; sz = getfilestream(path, &buffer); -- cgit v1.2.1