From: Fabio Massimo Di Nitto Date: Thu, 06 Sep 2007 20:40:37 +0200 Subject: [Cluster-devel] -O2 -Werror In-Reply-To: <20070906161516.GB16573@redhat.com> References: <20070906161516.GB16573@redhat.com> Message-ID: <46E049A5.9000205@fabbione.net> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit David Teigland wrote: > configure was recently changed from a default of -O0 to -O2. A couple of > places in the tree also use -Werror. The new combination of -O2 and > -Werror breaks the build when using default configure setting. > > [using gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)] > > We need to remove the -Werror's, go back to a default of -O0, or change > the code that breaks. I doubt that we'll be able to go too long with both > -O2 and -Werror, though, so one of them will probably need to change. > > To get things building until someone comes up with a better solution, I'm > taking the simplest route and going back to a default of -O0. > > Dave Patrick posted a patch that fixes cman/qdisk and he was waiting for Lon to ACK since he has a setup to test it. What else does it break? Fabio -- I'm going to make him an offer he can't refuse.