zapping-vbi / zvbi

Vertical Blanking Interval (VBI) utilities
Other
5 stars 4 forks source link

Compiler warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' #38

Closed ileanadumitrescu95 closed 1 year ago

ileanadumitrescu95 commented 1 year ago

During Debian build, there is a compiler warning:

gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DLIBZVBI_CHAINS_PATH=\"libzvbi-chains.so.0\" -D_REENTRANT -D_GNU_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/build/zvbi-0.2.40=. -fstack-protector-strong -Wformat -Werror=format-security -c -o proxyd.o proxyd.c
proxyd.c: In function 'vbi_proxyd_init':
proxyd.c:2708:10: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result]
 2708 |          dup(1);
      |          ^~~~~~
ileanadumitrescu95 commented 1 year ago

Resolved in commit 40b7863