Re: locale support for sscanf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: locale support for sscanf

On 01/17/2012 10:00 AM, [hidden email] wrote:

> Message: 2
> Date: Tue, 17 Jan 2012 06:33:34 -0800 (PST)
> From: CdeMills <[hidden email]>
> To: [hidden email]
> Subject: locale support patch for [fs]sscanf function
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
> Hello,
> herewith enclosed a patch proposal against 3.6.0 implementing locales
> support in [fs]sscanf. There is no API change; the "C" argument is re-used
> to pass the locale value. And "C" is BTW a valid locale name.
> Mechanism:
> - class octave_base_stream gets a new virtual member, imbue, which does
> nothing


Your patch was committed today (1/18/12). I now find that I get 196
warnings during compilation. They are all this same message:

./oct-stream.h:377: warning: unused parameter ‘loc’

Can you add a mechanism to stop these warnings? In this case the warning
appears harmless, but I notice it every time I compile.