[mythtv] [PATCH]: Fix compiler warning in CVS

Derek Atkins warlord at MIT.EDU
Thu Sep 25 16:09:48 EDT 2003


"Geoffrey Hausheer" <ou401cru02 at sneakemail.com> writes:

> Weird that I don't see that.  You'll probably need to do the same in
> mpegrecorder.cpp where I do the same thing.  By the way, why isn't that
> valid C syntax?

Could be compiler version.  I've got:

[root at mythtv root]# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Also, it could be semi-valid.  '0' is not a valid char[20], but {0} is
if you consider that "foo" is syntactic sugar for { 'f', 'o', 'o', 0 }

> .Geoff

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the mythtv-dev mailing list