ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Slava Semushin <php-coder@ngs.ru>
To: devel@lists.altlinux.org
Subject: [devel] Как отключить предупреждение об "declared with attribute warn_unused_result"
Date: Wed, 1 Nov 2006 21:38:11 +0600
Message-ID: <20061101153811.GA5832@rock.home> (raw)
In-Reply-To: <20061022111358.60705B0D94@basalt.office.altlinux.org> <20061022111354.70A9DB0D94@basalt.office.altlinux.org> <20061022111210.10EE9B0D94@basalt.office.altlinux.org>


--- QA Team Robot 2006-10-22 15:12:08 +0400
+++ Slava Semushin 2006-11-01 21:12:24 +0600

QTR> tap.c: In function '_gen_result':
QTR> tap.c:86: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result
QTR> tap.c: In function 'skip':
QTR> tap.c:302: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
QTR> tap.c: In function 'todo_start':
QTR> tap.c:327: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result

--- QA Team Robot 2006-10-22 15:13:54 +0400
+++ Slava Semushin 2006-11-01 21:12:24 +0600

QTR> datafile.c: In function 'LoadDatafile':
QTR> datafile.c:147: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
QTR> make: *** [datafile.o] Error 1make: Leaving directory `/usr/src/RPM/BUILD/wmbday-0.3.1'

--- QA Team Robot 2006-10-22 15:13:58 +0400
+++ Slava Semushin 2006-11-01 21:12:24 +0600

QTR> main.c: In function 'reload_sizes':
QTR> main.c:496: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result


    Вопрос: как отключить появление только этих предупреждений? Отключать
    -Werror я бы не хотел...

    P.S. Не стал сразу отправлять письмо, решил погуглить. Выяснилось, что
    эти предупреждения возникают из-за -DFORTIFY_SOURCE. Как это отключить
    я не смог найти. Please help.

-- 
+ Slava Semushin | php-coder @ ngs.ru
+ ALT Linux Team | php-coder @ altlinux.ru



       reply	other threads:[~2006-11-01 15:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01 15:38     ` Slava Semushin [this message]
2006-11-01 15:41       ` Led
2006-11-01 20:47         ` Dmitry V. Levin
2006-11-02  9:13           ` Led
2006-11-23  9:17           ` Slava Semushin
2006-11-23 14:39             ` Dmitry V. Levin
2006-11-02 16:40         ` Slava Semushin
2006-11-02 16:41           ` Led
2006-11-02 16:57             ` Slava Semushin
2006-11-02 17:00               ` Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061101153811.GA5832@rock.home \
    --to=php-coder@ngs.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git