From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OSr1I-00083o-Dt for garchives@archives.gentoo.org; Sun, 27 Jun 2010 12:31:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35B22E0A8F; Sun, 27 Jun 2010 12:31:31 +0000 (UTC) Received: from s15216962.onlinehome-server.info (forum.psychotherapie.org [217.160.22.205]) by pigeon.gentoo.org (Postfix) with ESMTP id 53578E0A84 for ; Sun, 27 Jun 2010 12:31:26 +0000 (UTC) Received: (from uucp@localhost) by s15216962.onlinehome-server.info (8.13.3/8.13.3) with UUCP id o5RCVP8d017696 for gentoo-dev@lists.gentoo.org; Sun, 27 Jun 2010 14:31:25 +0200 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id o5RCPd3w029294 for gentoo-dev@lists.gentoo.org; Sun, 27 Jun 2010 14:25:39 +0200 Date: Sun, 27 Jun 2010 14:25:39 +0200 From: Enrico Weigelt To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: FYI: Rules for distro-friendly packages Message-ID: <20100627122539.GF16434@nibiru.local> References: <20100625201738.GA4789@nibiru.local> <4C252C8E.8020408@gentoo.org> <20100626193915.GD4789@nibiru.local> <20100626205001.365b51cb@snowcone> <20100626195733.GF4789@nibiru.local> <20100626211254.002784d4@snowcone> <20100627104724.GC23460@nibiru.local> <20100627122258.GA8754@boostbox> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100627122258.GA8754@boostbox> User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: ee9f75d8-7163-4904-884d-71ca9a87bc6a X-Archives-Hash: d7e2e6232447cdc7073a9daa1fd78568 * Harald van D??k schrieb: > The compiler is not totally free to ignore the register keyword. Both > the C and the C++ standards require that the compiler complain when > taking the address of a register variable. Other compilers will issue a > hard error for it. Fixing the code to not declare the variable as > register would be the correct thing to do. BTW: is the register keyword still so useful nowadays ? Shouldn't a modern (optimizing) compiler be clever enough to find out when it can use registers instead of RAM ? > Make sure you *understand* warnings, and then you can decide whether to > fix the code, if there is anything to fix, or to ignore. hmm, is there a (portable) way to prevent a specific warning in an specific place ? (some kind of #pragma ?) cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service - http://www.metux.de/ --------------------------------------------------------------------- Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ ---------------------------------------------------------------------