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

Alan Snyder ax763 at yahoo.com
Thu Sep 25 11:35:10 EDT 2003


I routinely build using 

make >make.log 2>make.errors.log

and here, in case it's useful to anyone, is my
error/warning log from
sometime last evening:

In file included from NuppelVideoPlayer.h:13,
                 from NuppelVideoPlayer.cpp:17:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from recordingprofile.cpp:1:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from scheduledrecording.cpp:3:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from NuppelVideoPlayer.h:13,
                 from tv_play.cpp:24:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from tv_rec.cpp:18:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from NuppelVideoPlayer.h:13,
                 from nuppeldecoder.cpp:11:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from NuppelVideoPlayer.h:13,
                 from avformatdecoder.cpp:8:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
mpegrecorder.cpp: In member function `virtual void
MpegRecorder::SetOption(const QString&, const
QString&)':
mpegrecorder.cpp:125: warning: `bool found' might be
used uninitialized in
this function
In file included from NuppelVideoPlayer.h:13,
                 from videooutbase.cpp:6:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from NuppelVideoPlayer.h:13,
                 from ivtvdecoder.cpp:13:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from profilegroup.cpp:1:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from moc_recordingprofile.cpp:11:
recordingprofile.h:8: warning: aggregate has a partly
bracketed initializer
In file included from
../../libs/libmythtv/NuppelVideoPlayer.h:13,
                 from main.cpp:14:
.../../libs/libmythtv/recordingprofile.h:8: warning:
aggregate has a partly
bracketed initializer
In file included from
../../libs/libmythtv/NuppelVideoPlayer.h:13,
                 from manualschedule.h:8,
                 from main.cpp:17:
.../../libs/libmythtv/recordingprofile.h:8: warning:
aggregate has a partly
bracketed initializer
In file included from
../../libs/libmythtv/NuppelVideoPlayer.h:13,
                 from manualbox.cpp:26:
.../../libs/libmythtv/recordingprofile.h:8: warning:
aggregate has a partly
bracketed initializer
In file included from
../../libs/libmythtv/NuppelVideoPlayer.h:13,
                 from playbackbox.cpp:26:
.../../libs/libmythtv/recordingprofile.h:8: warning:
aggregate has a partly
bracketed initializer
In file included from
../../libs/libmythtv/NuppelVideoPlayer.h:13,
                 from manualschedule.cpp:26:
.../../libs/libmythtv/recordingprofile.h:8: warning:
aggregate has a partly
bracketed initializer
In file included from
../../libs/libmythtv/NuppelVideoPlayer.h:13,
                 from manualschedule.h:8,
                 from moc_manualschedule.cpp:11:
.../../libs/libmythtv/recordingprofile.h:8: warning:
aggregate has a partly
bracketed initializer

*****E-Mail Confidentiality Notice*****
This message (including any attachments) contains
information intended for a
specific individual(s) and purpose that may be
privileged, confidential or
otherwise protected from disclosure pursuant to
applicable law.  Any
inappropriate use, distribution or copying of the
message is strictly
prohibited and may subject you to criminal or civil
penalty.  If you have
received this transmission in error, please reply to
the sender indicating
this error and delete the transmission from your
system immediately.
 



> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org 
> [mailto:mythtv-dev-bounces at mythtv.org] On Behalf Of
Geoffrey Hausheer
> Sent: Thursday, September 25, 2003 1:23 PM
> To: mythtv-dev at mythtv.org
> Subject: Re: [mythtv] [PATCH]: Fix compiler warning
in CVS
> 
> 
> On 25 Sep 2003 12:37:28 -0400, "Derek Atkins
warlord-at-MIT.EDU
> 
> |mythtv/1.0-Allow|" <j0xjhlc9ur0t at sneakemail.com>
said:
> 
> > Hi,
> 
> > 
> 
> > When I build current CVS I get the following
compiler warning:
> 
> > 
> 
> > g++ -c -pipe -Wall -W -g `freetype-config
--cflags` -D_REENTRANT
> 
> > -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr/local\" -DMMX
> 
> > -DQT_THREAD_SUPPORT
-I/usr/lib/qt-3.1/mkspecs/default -I.
> 
> > -I/usr/local/include -I../libmyth -I..
-I../libavcodec 
> > -I../libavformat
> 
> > -I../libdvbdev -I/usr/lib/qt-3.1/include -o
NuppelVideoPlayer.o
> 
> > NuppelVideoPlayer.cpp
> 
> > In file included from NuppelVideoPlayer.h:13,
> 
> >                  from NuppelVideoPlayer.cpp:17:
> 
> > recordingprofile.h:8: warning: aggregate has a
partly bracketed
> 
> > initializer
> 
> > 
> 
> > The enclosed patch fixes the problem.
> 
> > 
> 
> 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?
> 
> 
> 
> Geoff
> 
> _______________________________________________
> 
> mythtv-dev mailing list
> 
> mythtv-dev at mythtv.org
> 
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


More information about the mythtv-dev mailing list