[vdr] Re: [ANNOUNCE] VDR developer version 1.3.47

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sat Apr 22 12:17:51 CEST 2006


Christian Wieninger wrote:
> Hi,
> 
> beneath notice and sorry if already known, but:
> 
> g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -c -DREMOTE_KBD 
> -DLIRC_DEVICE=\"/dev/lircd\" -DRCU_DEVICE=\"/dev/ttyS1\" -D_GNU_SOURCE 
> -DVIDEODIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\"  recording.c
> recording.c: In constructor 'cIndexFile::cIndexFile(const char*, bool)':
> recording.c:1200: warning: format '%d' expects type 'int', but argument 
> 3 has type 'long unsigned int'
> 
> 
> gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)

Strange... I have the same compiler version here

kls at hawk:/home/kls/vdr/VDR > g++ -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 
--enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)


but I don't get that warning.
I could change it to "%u" (which makes sense, since the value is
actually unsigned), but when I change it to "%lu" I get

g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -c -DREMOTE_KBD -DLIRC_DEVICE=\"/dev/lircd\" -DRCU_DEVICE=\"/dev/ttyS1\" -D_GNU_SOURCE -DVIDEODIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\"  recording.c
recording.c: In constructor 'cIndexFile::cIndexFile(const char*, bool)':
recording.c:1200: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'unsigned int'


Just in case, my kernel version is

Linux hawk 2.6.13-15.8-default #1 Fri Feb 10 16:26:01 CET 2006 i686 i686 i386 GNU/Linux


I'm not sure what to make of this...

Klaus



More information about the vdr mailing list