[devel] Как отключить предупреждение об "declared with attribute warn_unused_result"
Slava Semushin
=?iso-8859-1?q?php-coder_=CE=C1_ngs=2Eru?=
Чт Ноя 2 19:40:35 MSK 2006
--- 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
--
+ Slava Semushin | php-coder @ ngs.ru
+ ALT Linux Team | php-coder @ altlinux.ru
Подробная информация о списке рассылки Devel