From owner-freebsd-current Tue Aug 27 14: 5:51 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1536837B400 for ; Tue, 27 Aug 2002 14:05:49 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB7CA43E3B for ; Tue, 27 Aug 2002 14:05:48 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0470.cvx21-bradley.dialup.earthlink.net ([209.179.193.215] helo=mindspring.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17jnWx-0001om-00; Tue, 27 Aug 2002 14:05:44 -0700 Message-ID: <3D6BE963.363EF4A6@mindspring.com> Date: Tue, 27 Aug 2002 14:04:35 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Moore, Robert" Cc: 'Mitsuru IWASAKI' , yb@sainte-barbe.org, acpi-jp@jp.FreeBSD.org, current@freebsd.org, "Grover, Andrew" Subject: Re: [acpi-jp 1735] Re: Call for testers: acpica-unix-20020815 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Moore, Robert" wrote: > This looks like the (in)famous "implicit return" problem that is in some > Toshiba ASL files. > > Method(_CRS) { > CRS_(0x10) > } > > This does NOT actually return a value and the ASL code is incorrect. It has > to be: > > Method(_CRS) { > Return (CRS_(0x10)) > } > > The iASL compiler generates warnings for all instances of this erroneous > code. Is there any way to add a "-s" for "strict" option to the iASL compiler, in which it generates warnings for this code... but in the absence of the option, simply pretends it saw the "Return", since it knows that that's the problem anyway, and is just being bitchy by warning about it instead of warning, but also taking the appropriate corrective action for this case? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message