diff options
author | Ravishankar N <ravishankar@redhat.com> | 2019-05-09 14:43:06 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2019-05-10 14:54:09 +0000 |
commit | 5b7ab2e1699f35a0a14211a4e85805d95bcadb62 (patch) | |
tree | a3291914af4ce8c268b93928e9a92fee85dd9852 /tests | |
parent | b475551c66b86863cc93ebdfa6daeeab67bdbd9e (diff) |
tests: fix bug-1319374.c compile warnings.
I was looking at a downstream failure of bug-1319374-THIS-crash.t when I
saw the compiler was throwing a warning while running the test:
tests/bugs/gfapi/bug-1319374.c:17:61: warning: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration]
fprintf(stderr, "\nglfs_new: returned NULL (%s)\n", strerror(errno));
^~~~~~~~
perror
So I compiled the .c with -Wall and saw a lot many more warnings, all
due of a missing header. This patch fixes it.
fixes: bz#1708163
Change-Id: I8b6dd8e1404178a3d99b2d92d01f4575f5203e58
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/gfapi/bug-1319374.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bugs/gfapi/bug-1319374.c b/tests/bugs/gfapi/bug-1319374.c index bd80462e3ba..ea0dfb6b0f2 100644 --- a/tests/bugs/gfapi/bug-1319374.c +++ b/tests/bugs/gfapi/bug-1319374.c @@ -3,6 +3,7 @@ #include <errno.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #define NO_INIT 1 |