diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 10:03:41 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 10:03:41 +0100 |
| commit | 861f56375aee4291285e8c853896044ce04343cd (patch) | |
| tree | b9ed6e8ae1a8d0504036e4c45827df4b82dd4658 /util/libreboot-utils/lib/num.c | |
| parent | d91dd0ad81f041e725599665d23c16d8c9f35b75 (diff) | |
libreboot-utils: fix ALL compiler warnings
i wasn't using strict mode enough in make:
make strict
now it compiles cleanly. mostly removing
unused variables, fixing implicit conversions,
etc.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/num.c')
| -rw-r--r-- | util/libreboot-utils/lib/num.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/libreboot-utils/lib/num.c b/util/libreboot-utils/lib/num.c index ad349173..ce5e420d 100644 --- a/util/libreboot-utils/lib/num.c +++ b/util/libreboot-utils/lib/num.c @@ -29,7 +29,6 @@ unsigned short hextonum(char ch_s) { unsigned char ch; - size_t rval; ch = (unsigned char)ch_s; @@ -81,7 +80,7 @@ spew_hex(const void *data, size_t len) if (len <= 4294967296) /* below 4GB */ printf("%08zx ", i); else - printf("%0*zx ", sizeof(size_t) * 2, i); + printf("%16zu ", i); for (j = 0; j < 16; j++) { @@ -112,6 +111,6 @@ void check_bin(size_t a, const char *a_name) { if (a > 1) - err_exit(EINVAL, "%s must be 0 or 1, but is %lu", + exitf("%s must be 0 or 1, but is %lu", a_name, (size_t)a); } |
