ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Led <led@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Как отключить предупреждение об "declared with attribute warn_unused_result"
Date: Thu, 2 Nov 2006 18:41:08 +0200
Message-ID: <200611021841.09127.led@altlinux.ru> (raw)
In-Reply-To: <20061102164035.GA10658@rock.home>

В сообщении от 2 ноября 2006 18:40 Slava Semushin написал(a):
> --- Led 2006-11-01 17:41:17 +0200
> +++ Slava Semushin 2006-11-02 22:39:55 +0600
>
> L> %add_optflags -UFORTIFY_SOURCE
> L> не отключает?
>
>     Нет.
>
>     + make -j1 'CFLAGS=-pipe -Wall -O2 -march=i686 -mtune=pentium4
>     -UFORTIFY_SOURCE -Werror' --silent --no-print-directory
>     cc1: warnings being treated as errors
>     src/main.c: In function 'save_hi_score':
>     src/main.c:369: warning: ignoring return value of 'write', declared
>     with attribute warn_unused_result
>     src/main.c:371: warning: ignoring return value of 'write', declared
>     with attribute warn_unused_result
>     src/main.c:373: warning: ignoring return value of 'write', declared
>     with attribute warn_unused_result
>     src/main.c: In function 'color_set_checksout':
>     src/main.c:652: warning: ignoring return value of 'fgets', declared
>     with attribute warn_unused_result
>     make[1]: *** [clines-main.o] Error 1

Да уж, наверное, благодаря --silent - "очень много" полезной информации для 
анализа:)

-- 
Led.


  reply	other threads:[~2006-11-02 16:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01 15:38     ` Slava Semushin
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 [this message]
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=200611021841.09127.led@altlinux.ru \
    --to=led@altlinux.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