Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 260185

Summary: app-misc/beanstalkd-1.0 error: ignoring return value of 'chdir', declared with attribute warn_unused_result
Product: Gentoo Linux Reporter: Magnus Granberg <zorry>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: Build log of beanstalkd-1.0

Description Magnus Granberg gentoo-dev 2009-02-24 21:24:06 UTC
Compile with GCC 4.3.3 and glibc >=2.8 (FORTIFY_SOURCE=2)
Compiler hit a warning about ignoring return value of 'chdir', declared with attribute warn_unused_result
but warnings is being treated as errors.


Reproducible: Always

Steps to Reproduce:
1.Compile tha package with gcc 4.3.3 and glibc >=2.8 from portage
2.
3.

Actual Results:  
cc -O2 -pipe -Wall -Werror -O2   -c -o tube.o tube.c
cc1: warnings being treated as errors
beanstalkd.c: In function 'daemonize':
beanstalkd.c:64: error: ignoring return value of 'chdir', declared with attribute warn_unused_result
make: *** [beanstalkd.o] Error 1

Expected Results:  
Would compile fine.
Comment 1 Magnus Granberg gentoo-dev 2009-02-24 21:24:55 UTC
Created attachment 183077 [details]
Build log of beanstalkd-1.0
Comment 2 Magnus Granberg gentoo-dev 2009-02-24 21:29:58 UTC

*** This bug has been marked as a duplicate of bug 259013 ***