Bug #1329
openWarning messages in compilation
0%
Description
Hello
When I compile the plugin, I have several errors:
In file included from /vdr/vdr-2.0.0/include/vdr/i18n.h:14:0,
from /vdr/vdr-2.0.0/include/vdr/config.h:19,
from /vdr/vdr-2.0.0/include/vdr/interface.h:13,
from softhddevice.cpp:25:
/vdr/vdr-2.0.0/include/vdr/tools.h:450:15: warning: unused parameter ‘ListObject’ [-Wunused-parameter]
In file included from /vdr/vdr-2.0.0/include/vdr/config.h:20:0,
from /vdr/vdr-2.0.0/include/vdr/interface.h:13,
from softhddevice.cpp:25:
/vdr/vdr-2.0.0/include/vdr/font.h:53:7: warning: unused parameter ‘s’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘Pixmap’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘x’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘y’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘s’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘ColorFg’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘ColorBg’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/font.h:58:16: warning: unused parameter ‘Width’ [-Wunused-parameter]
In file included from /vdr/vdr-2.0.0/include/vdr/skins.h:14:0,
from /vdr/vdr-2.0.0/include/vdr/interface.h:15,
from softhddevice.cpp:25:
/vdr/vdr-2.0.0/include/vdr/epg.h:236:16: warning: unused parameter ‘Channel’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:241:16: warning: unused parameter ‘Schedule’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:241:16: warning: unused parameter ‘EitEvent’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:241:16: warning: unused parameter ‘TableID’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:241:16: warning: unused parameter ‘Version’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:246:16: warning: unused parameter ‘Channel’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:252:16: warning: unused parameter ‘EventID’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:252:16: warning: unused parameter ‘StartTime’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:252:16: warning: unused parameter ‘TableID’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:252:16: warning: unused parameter ‘Version’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:256:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:256:16: warning: unused parameter ‘EventID’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:257:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:257:16: warning: unused parameter ‘Title’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:258:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:258:16: warning: unused parameter ‘ShortText’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:259:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:259:16: warning: unused parameter ‘Description’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:260:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:260:16: warning: unused parameter ‘Contents’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:261:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:261:16: warning: unused parameter ‘ParentalRating’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:262:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:262:16: warning: unused parameter ‘StartTime’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:263:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:263:16: warning: unused parameter ‘Duration’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:264:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:264:16: warning: unused parameter ‘Vps’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:265:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:265:16: warning: unused parameter ‘Components’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:266:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:268:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:271:16: warning: unused parameter ‘Schedule’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:273:16: warning: unused parameter ‘Schedule’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:273:16: warning: unused parameter ‘SegmentStart’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:273:16: warning: unused parameter ‘SegmentEnd’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:273:16: warning: unused parameter ‘TableID’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/epg.h:273:16: warning: unused parameter ‘Version’ [-Wunused-parameter]
In file included from /vdr/vdr-2.0.0/include/vdr/interface.h:15:0,
from softhddevice.cpp:25:
/vdr/vdr-2.0.0/include/vdr/skins.h:39:16: warning: unused parameter ‘Red’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:39:16: warning: unused parameter ‘Green’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:39:16: warning: unused parameter ‘Yellow’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:39:16: warning: unused parameter ‘Blue’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:42:16: warning: unused parameter ‘Type’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:42:16: warning: unused parameter ‘Text’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘Event’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘Index’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘Current’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘Selectable’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘Channel’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘WithDate’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:186:16: warning: unused parameter ‘TimerMatch’ [-Wunused-parameter]
In file included from /vdr/vdr-2.0.0/include/vdr/interface.h:15:0,
from softhddevice.cpp:25:
/vdr/vdr-2.0.0/include/vdr/skins.h:196:16: warning: unused parameter ‘Timer’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:196:16: warning: unused parameter ‘Index’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:196:16: warning: unused parameter ‘Current’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:196:16: warning: unused parameter ‘Selectable’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:203:16: warning: unused parameter ‘Channel’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:203:16: warning: unused parameter ‘Index’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:203:16: warning: unused parameter ‘Current’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:203:16: warning: unused parameter ‘Selectable’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:203:16: warning: unused parameter ‘WithProvider’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘Recording’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘Index’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘Current’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘Selectable’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘Level’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘Total’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/skins.h:212:16: warning: unused parameter ‘New’ [-Wunused-parameter]
In file included from /vdr/vdr-2.0.0/include/vdr/dvbdevice.h:15:0,
from /vdr/vdr-2.0.0/include/vdr/menuitems.h:14,
from /vdr/vdr-2.0.0/include/vdr/plugin.h:14,
from softhddevice.cpp:26:
/vdr/vdr-2.0.0/include/vdr/device.h:663:17: warning: unused parameter ‘Rect’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/device.h:663:17: warning: unused parameter ‘Alignment’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/device.h:684:16: warning: unused parameter ‘Rect’ [-Wunused-parameter]
In file included from /vdr/vdr-2.0.0/include/vdr/menuitems.h:15:0,
from /vdr/vdr-2.0.0/include/vdr/plugin.h:14,
from softhddevice.cpp:26:
/vdr/vdr-2.0.0/include/vdr/osdbase.h:84:20: warning: unused parameter ‘Key’ [-Wunused-parameter]
In file included from softhddevice.cpp:27:0:
/vdr/vdr-2.0.0/include/vdr/player.h:39:16: warning: unused parameter ‘On’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:57:16: warning: unused parameter ‘Current’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:57:16: warning: unused parameter ‘Total’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:57:16: warning: unused parameter ‘SnapToIFrame’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:60:16: warning: unused parameter ‘Play’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:60:16: warning: unused parameter ‘Forward’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:60:16: warning: unused parameter ‘Speed’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:66:16: warning: unused parameter ‘Type’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:66:16: warning: unused parameter ‘TrackId’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:70:16: warning: unused parameter ‘Type’ [-Wunused-parameter]
/vdr/vdr-2.0.0/include/vdr/player.h:70:16: warning: unused parameter ‘TrackId’ [-Wunused-parameter]
In file included from softhddevice.cpp:1344:0:
/vdr/vdr-2.0.0/include/vdr/receiver.h:28:16: warning: unused parameter ‘On’ [-Wunused-parameter]
What can it be?
I use GCC version 4.7.2
Thank, Luca
Updated by lukkino over 11 years ago
Hi
I have found a temporary solution, with this patch to file softhddevice.cpp
--- softhddevice.cpp 2013-04-06 18:45:10.103196261 +0200 +++ softhddevice.cpp 2013-04-06 18:37:22.636791710 +0200 @@ -22,12 +22,14 @@ #define __STDC_CONSTANT_MACROS ///< needed for ffmpeg UINT64_C +#pragma GCC diagnostic ignored "-Wunused-parameter" #include <vdr/interface.h> #include <vdr/plugin.h> #include <vdr/player.h> #include <vdr/osd.h> #include <vdr/dvbspu.h> #include <vdr/shutdown.h> +#pragma GCC diagnostic warning "-Wunused-parameter" #ifdef HAVE_CONFIG #include "config.h" @@ -1341,7 +1343,9 @@ // cReceiver ////////////////////////////////////////////////////////////////////////////// +#pragma GCC diagnostic ignored "-Wunused-parameter" #include <vdr/receiver.h> +#pragma GCC diagnostic warning "-Wunused-parameter" /** ** Receiver class for PIP mode.
Hi Luca
Updated by johns over 11 years ago
I don't see why you get this warnings.
gcc --version gcc (Gentoo 4.7.2-r1 p1.5, pie-0.5.5) 4.7.2
I get no warnings:
g++ -ggdb -O2 -march=native -fomit-frame-pointer -pipe -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include -DUSE_PLUGINMISSING -DUSE_CHANNELBIND -DUSE_DDEPGENTRY -DUSE_JUMPINGSECONDS -DUSE_MAINMENUHOOKS -DUSE_VASARAJANAULOJA -I/usr/include/alsa -DPLUGIN_NAME_I18N='"softhddevice"' -D_GNU_SOURCE -DDEBUG -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_PIP -DUSE_SOFTLIMIT -DUSE_ALSA -DUSE_OSS -DUSE_VDPAU -DUSE_VAAPI -DUSE_SCREENSAVER -DUSE_SWRESAMPLE -DGIT_REV='"5b35e70"' -Wunused-parameter -g -W -Wall -Wextra -Winit-self -Werror=overloaded-virtual -c -o softhddevice.o softhddevice.cpp
But I have seen the same warnings, perhaps building the plugin inside vdr?
Updated by lukkino over 11 years ago
Yes, I building the plugin inside vdr.
I use default CFLAGS and CXXFLAGS
Perhaps the debian gcc is verbose... However also in the plugin "play" are the same warning messages..
I just do not know why :-(
Hi, Luca