The latest version of Ubuntu (Intrepid Ibex) includes a GLIBC that attaches the warn_unused_result attribute to many C library functions. The archer project doesn't use the -Wno-unused flag, so I needed to fix these to build archer. It seemed to me that submitting the patch upstream would be the most helpful thing to do. The first patch simply adds return value checks. The second patch actually removes some code which I think is unnecessary.