From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22697 invoked by alias); 21 Oct 2005 21:35:03 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 22616 invoked by uid 22791); 21 Oct 2005 21:35:00 -0000 Received: from mail.dadadada.net (HELO mail.dadadada.net) (209.48.2.106) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 21 Oct 2005 21:35:00 +0000 Received: from sugar ([127.0.0.1] ident=billy) by mail.dadadada.net with esmtp (Exim 3.36 #1 (Debian)) id 1ET4XO-000455-00; Fri, 21 Oct 2005 17:34:54 -0400 Message-ID: <43595EFC.4000802@dadadada.net> Date: Fri, 21 Oct 2005 21:35:00 -0000 From: Billy User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: Billy CC: Andrew Lunn , eCos Disuss References: <20051021201131.GS7087@lunn.ch> <43595DC0.9050505@dadadada.net> In-Reply-To: <43595DC0.9050505@dadadada.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] help with C++ needed.... X-SW-Source: 2005-10/txt/msg00181.txt.bz2 Billy wrote: > Andrew Lunn wrote: > >> Hi Folks >> >> Could somebody who is better at C++ than me take a look at this >> warning gcc 4.0.2 is giving. Using the "Monkey's typing Shakespeare" >> approach did not get me very far... >> >> /home/lunn/eCos/work/install/include/cyg/kernel/thread.inl:630: >> warning: 'cyg_bool Cyg_ThreadQueue::empty()' was used before it was >> declared inline >> /home/lunn/eCos/work/install/include/cyg/kernel/thread.hxx:565: >> warning: previous non-inline declaration here > > > Do like 'remove' (just above), and lose the 'inline' qualifier > in thread.hxx:565. The 'inline' qualifier in the _definition_ > should be enough, eh? > > The usage: "inline foo();" (with a semicolon) smells fishy. > > Maybe you tried that already. This might help: http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.9 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss