From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29679 invoked by alias); 21 Sep 2009 10:47:18 -0000 Received: (qmail 29665 invoked by uid 48); 21 Sep 2009 10:47:18 -0000 Date: Mon, 21 Sep 2009 10:47:00 -0000 Message-ID: <20090921104718.29664.qmail@sourceware.org> From: "info at skierpage dot com" To: gdb-prs@sourceware.org In-Reply-To: <20090921004905.10675.info@skierpage.com> References: <20090921004905.10675.info@skierpage.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug build/10675] cli-cmds.c:323: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00284.txt.bz2 ------- Additional Comments From info at skierpage dot com 2009-09-21 10:47 ------- I'm also getting this compiler warning/error in other places: mi/mi-cmd-env.c:81: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result gdb/main.c: In function ‘captured_main’: gdb/main.c:191: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result gdb/top.c: In function ‘gdb_init’: gdb/top.c:1631: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result gdb/utils.c: In function ‘internal_vproblem’: gdb/utils.c:707: error: ignoring return value of ‘write’, declared with attribute warn_unused_result gdb/inflow.c: In function ‘new_tty’: gdb/inflow.c:548: error: ignoring return value of ‘dup’, declared with attribute warn_unused_result gdb/inflow.c:553: error: ignoring return value of ‘dup’, declared with attribute warn_unused_result gdb/inflow.c:558: error: ignoring return value of ‘dup’, declared with attribute warn_unused_result FWIW, to blow past these compile errors I've surrounded the offending line with something like: char *junk; junk = [offending line] I haven't done anything to enforce such strict compiling, just configure and make. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10675 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.