From: "Todd Deshane" Subject: Xen build error based on gcc version Date: Wed, 26 Nov 2008 16:15:00 -0500 Message-ID: <1e16a9ed0811261315o68ef7fd5s4198cc537f78778a@mail.gmail.com> Reply-To: deshantm@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel mailing list List-Id: xen-devel@lists.xenproject.org Specific gcc versions seem to have trouble and error out on: (xen/tools/symbols.c) symbols.c:84: error: ignoring return value of 'fgets', declared with attribute warn_unused_result It has been reported to xen-users are a few occasions, with different versions of Xen. [1][2][3] Presumably different gcc versions since two of them are older posts and on different versions of Xen. I just ran across it on Ubuntu 8.10 gcc version 4.3.2 compiling xen-unstable. If I switch the compiler to 3.4 or 4.2 it compiles fine. It is a gcc problem or a problem with the Xen code? Cheers, Todd [1] http://xen.markmail.org/search/?q=fgets symbol.c#query:fgets symbol.c+page:1+mid:hzvevwa6e6jcunul+state:results [2] http://xen.markmail.org/search/?q=fgets symbol.c#query:fgets symbol.c from%3A"Zoran Kikic"+page:1+mid:3icw4rdteaco6kmf+state:results [3] http://xen.markmail.org/search/?q=fgets symbol.c#query:fgets symbol.c from%3A"Zoran Kikic"+page:1+mid:nwiob3nl42u2dxq3+state:results -- Todd Deshane http://todddeshane.net http://runningxen.com