[rtems-tools commit] rtemstoolkit:libelf: Removing warning for asprintf on Windows.

Chris Johns chrisj at rtems.org
Wed Nov 28 23:20:23 UTC 2018


Module:    rtems-tools
Branch:    master
Commit:    09f4dbea55d1685f400e1475daed411a55ab74a7
Changeset: http://git.rtems.org/rtems-tools/commit/?id=09f4dbea55d1685f400e1475daed411a55ab74a7

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Nov 29 08:02:54 2018 +1100

rtemstoolkit:libelf: Removing warning for asprintf on Windows.

---

 rtemstoolkit/wscript | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rtemstoolkit/wscript b/rtemstoolkit/wscript
index 82123e5..2c126c8 100644
--- a/rtemstoolkit/wscript
+++ b/rtemstoolkit/wscript
@@ -339,6 +339,9 @@ def bld_elftoolchain(bld, conf):
                        libdwarf + 'libdwarf_sections.c',
                        libdwarf + 'libdwarf_str.c'] + libdwarf_m4_source)
 
+    #
+    # The no warning on implicit function decls is for asprintf on Wing64.
+    #
     bld.stlib(target = 'elftc',
               features = 'c',
               install_path = None,
@@ -346,7 +349,7 @@ def bld_elftoolchain(bld, conf):
                           'elftoolchain/libelf',
                           'elftoolchain/libelftc',
                           'elftoolchain/common'] + includes,
-              cflags = conf['cflags'],
+              cflags = conf['cflags'] + ['-Wno-implicit-function-declaration'],
               source =[libelftc + 'elftc_bfdtarget.c',
                        libelftc + 'elftc_copyfile.c',
                        libelftc + 'elftc_demangle.c',




More information about the vc mailing list