This is an automated email from Gerrit.

Colin Baumgarten ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/3939

-- gerrit

commit 66a30c3cb3d0a54519ab66bec745d0fdda5b5f62
Author: Colin Baumgarten <[email protected]>
Date:   Thu Jan 5 23:48:31 2017 +0100

    contrib/itmdump: fix compiler warning
    
    Fix the following compiler warning by adding the missing stdlib.h
    include.
    
    itmdump.c: In function ‘main’:
    itmdump.c:390:16: warning: implicit declaration of function ‘atoi’ 
[-Wimplicit-function-declaration]
        dump_swit = atoi(optarg);
                    ^
    
    Change-Id: I146625bc62a01b2d9bf86d367fb39e4ce3280fcc
    Signed-off-by: Colin Baumgarten <[email protected]>

diff --git a/contrib/itmdump.c b/contrib/itmdump.c
index 4910920..f829f0e 100644
--- a/contrib/itmdump.c
+++ b/contrib/itmdump.c
@@ -40,6 +40,7 @@
 #include <errno.h>
 #include <libgen.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
 #include <unistd.h>

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to