diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2016-09-21 10:02:57 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2016-09-21 10:53:55 -0500 |
commit | 8b4700521afc5760474fc82ebeb861c2c84118da (patch) | |
tree | c6131043f22ab71e196c173a727a1ac371c6729a /storageaddsel.cpp | |
parent | b898314b84e808d8e64c759140bdead2e573e78e (diff) | |
download | phosphor-host-ipmid-8b4700521afc5760474fc82ebeb861c2c84118da.tar.gz phosphor-host-ipmid-8b4700521afc5760474fc82ebeb861c2c84118da.zip |
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>
Diffstat (limited to 'storageaddsel.cpp')
-rw-r--r-- | storageaddsel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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_t>(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); |