[pvrusb2] New driver snapshot: pvrusb2-mci-20080210

Mike Isely isely at isely.net
Sun Feb 10 23:15:55 CST 2008


On Sun, 10 Feb 2008, Mark Goldberg wrote:

> On Feb 10, 2008 9:49 PM, Mike Isely <isely at isely.net> wrote:
> > On Sun, 10 Feb 2008, Mike Isely wrote:
> > I just looked closer at the line in question.  I thought initially this
> > was a prototype issue, but it's complaining about a printf format.
> > That suggests a possible compiler difference.  What gcc version are you
> > using?  I'll bet you should be getting this warning with older snapshots
> > as well.
> 
> gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33)

And what I have here is:

gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

The warning is happening because I'm passing a size_t to * width 
parameter (e.g. "%*s" where "*" indicates the width is passed as an 
argument to the call).  This is really a pretty harmless thing, but a 
cast to int there is probably the right answer.  I will put that into 
the source tree now.  I have *no* idea why I'm not seeing this warning 
here.

  -Mike

-- 
                        |         Mike Isely          |     PGP fingerprint
     Spammers Die!!     |                             | 03 54 43 4D 75 E5 CC 92
                        |   isely @ pobox (dot) com   | 71 16 01 E2 B5 F5 C1 E8
                        |                             |


More information about the pvrusb2 mailing list