From patchwork Sun Apr 2 07:57:09 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 12243 Received: from c-71-197-74-6.hsd1.ca.comcast.net ([71.197.74.6] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.50) id 1FPxOK-0002lO-KU for vdr@linuxtv.org; Sun, 02 Apr 2006 09:52:57 +0200 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by nofear.bounceme.net (Postfix) with ESMTP id F3B7173546 for ; Sat, 1 Apr 2006 23:52:43 -0800 (PST) Message-ID: <442F83D5.3030800@syphir.sytes.net> Date: Sat, 01 Apr 2006 23:57:09 -0800 From: "C.Y.M" Organization: CooLNeT User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Vdr X-Enigmail-Version: 0.94.0.0 Subject: [vdr] softplay cvs warning cleanups X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 07:52:57 -0000 Status: O X-Status: X-Keywords: X-UID: 8687 I noticed a few warnings when building softplay from cvs. make[1]: Entering directory `/var/local/vdr/vdr-1.3.45-eepg/PLUGINS/src/softplay.cvs' ccache g++ -g -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"softplay"' -I../../../include -I/usr/src/DVB/linux/include -I/usr/include/ffmpeg/ -I/usr/include/ffmpeg//libavformat -I/usr/include/ffmpeg//libavcodec -I/usr/include/ffmpeg//libavutil PlayListMenu.c PlayListMenu.c: In member function `virtual eOSState cReplayList::ProcessKey(eKeys)': PlayListMenu.c:242: warning: int format, time_t arg (arg 3) PlayListMenu.c:242: warning: int format, time_t arg (arg 4) ccache g++ -g -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"softplay"' -I../../../include -I/usr/src/DVB/linux/include -I/usr/include/ffmpeg/ -I/usr/include/ffmpeg//libavformat -I/usr/include/ffmpeg//libavcodec -I/usr/include/ffmpeg//libavutil FileIndex.c FileIndex.c: In member function `void cIndex::ParseM3uExtInf(const char*)': FileIndex.c:98: warning: char format, different type arg (arg 3) ccache g++ -g -O2 -Wall -Woverloaded-virtual -shared softplay.o SoftPlayer.o PlayList.o PlayListMenu.o i18n.o FileIndex.o Receiver.o Setup.o -lavformat -lavcodec -lz -o libvdr-softplay.so The attached patch seems to fix the problem. BR. --- softplay/FileIndex.c.orig 2006-03-12 12:23:23.000000000 -0800 +++ softplay/FileIndex.c 2006-04-01 21:44:37.000000000 -0800 @@ -95,7 +95,7 @@ skipSpaces(pos); printf("duration '%s' \n",pos); - if ( !*pos || sscanf(pos,"%100[0-9]%n",&tmp,&len) == 0 ) { + if ( !*pos || sscanf(pos,"%100[0-9]%n",(char *)&tmp,&len) == 0 ) { printf("EXTINF Could not parse duration \"%s\". Ignoring.\n",pos); return; }; --- softplay.cvs/PlayListMenu.c.orig 2006-03-12 12:28:52.000000000 -0800 +++ softplay.cvs/PlayListMenu.c 2006-04-01 21:31:14.000000000 -0800 @@ -240,7 +240,7 @@ time(NULL) - lastActivity > 40 && !hold ) { MENUDEB("SetCurrent current title %d time %d lastActivity %d\n", - playList->GetCurrIdx(),time(NULL),lastActivity); + playList->GetCurrIdx(),int(time(NULL)),int(lastActivity)); SetCurrent(Get(playList->GetCurrIdx())); Display(); }; --- softplay.cvs/softplay.c.orig 2006-03-12 12:28:52.000000000 -0800 +++ softplay.cvs/softplay.c 2006-04-01 18:29:27.000000000 -0800 @@ -511,8 +511,8 @@ void cSoftPlay::ScanForPlaylists() { struct dirent **namelist; int n; - char Name[60]; - char Title[60]; + //char Name[60]; + //char Title[60]; n = scandir(configDir, &namelist, 0, alphasort);