gdb does not compile on latest svn r16391 with gcc-4.3.3

here is the error:
cc1: warnings being treated as errors
.././gdb/cli/cli-cmds.c: In function 'pwd_command':
.././gdb/cli/cli-cmds.c:323: error: ignoring return value of 'getcwd',
declared with attribute warn_unused_result

the following patch deals with issue

Signed-off-by: Alexandros C. Couloumbis <alex at ozo.com>

---
diff -Nrub toolchain/gdb/Makefile.orig toolchain/gdb/Makefile

--- toolchain/gdb/Makefile.orig 2009-06-09 12:44:12.845806604 +0300
+++ toolchain/gdb/Makefile      2009-06-09 12:44:37.419806535 +0300
@@ -29,6 +29,7 @@
                --disable-tui --disable-gdbtk --without-x \
                --without-included-gettext \
                --enable-threads \
+               --disable-werror \
        );
 endef



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to