From: Tomohiro Kusumi Date: Mon, 1 May 2017 18:48:15 +0000 (+0300) Subject: configure: Add missing to avoid bogus warning X-Git-Tag: fio-2.20~16 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=209c37b4a53d181973b74a2560906cbe5697b3a4 configure: Add missing to avoid bogus warning This warning has nothing to do with what the code is trying to test. This isn't testing if memset(3) is available, so just silence the warning by including an appropriate header. -- # uname Linux # grep memset config.log -A2 | head -3 /tmp/fio-conf-23441-58170-6422.c:5:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset(&cid, 0, sizeof(cid)); ^~~~~~ Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index d95d7cef..255fa221 100755 --- a/configure +++ b/configure @@ -904,6 +904,7 @@ if test "$clockid_t" != "yes" ; then fi cat > $TMPC << EOF #include +#include int main(int argc, char **argv) { volatile clockid_t cid;