mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed some compiler warnings with gcc-4.2.0
This commit is contained in:
parent
529becb865
commit
91ad06409b
@ -2101,6 +2101,7 @@ Matthias Schwarzott <zzam@gentoo.org>
|
||||
for suggesting to move the "all" target in plugin Makefiles before the
|
||||
"Implicit rules", so that a plain "make" will compile everything
|
||||
for adding DESTDIR and PREFIX handling to the Makefile
|
||||
for fixing some compiler warnings with gcc-4.2.0
|
||||
|
||||
Martin Ostermann <martin@familie-ostermann.de>
|
||||
for fixing processing the PDCDescriptor in 'libsi' on big endian systems
|
||||
|
1
HISTORY
1
HISTORY
@ -5390,3 +5390,4 @@ Video Disk Recorder Revision History
|
||||
- Fixed detecting whether a particular locale is actually supported.
|
||||
- Added a note about LANG having to be set to a valid locale in INSTALL
|
||||
(suggested by Matthias Fechner).
|
||||
- Fixed some compiler warnings with gcc-4.2.0 (thanks to Matthias Schwarzott).
|
||||
|
4
i18n.c
4
i18n.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: i18n.c 1.315 2007/08/24 13:08:04 kls Exp $
|
||||
* $Id: i18n.c 1.316 2007/08/24 13:15:48 kls Exp $
|
||||
*
|
||||
*
|
||||
*/
|
||||
@ -62,7 +62,7 @@ const char *LanguageCodeList[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static char *I18nLocaleDir = LOCDIR;
|
||||
static const char *I18nLocaleDir = LOCDIR;
|
||||
|
||||
static cStringList LanguageLocales;
|
||||
static cStringList LanguageNames;
|
||||
|
4
keys.h
4
keys.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: keys.h 1.12 2007/08/04 14:40:23 kls Exp $
|
||||
* $Id: keys.h 1.13 2007/08/24 13:15:48 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __KEYS_H
|
||||
@ -82,7 +82,7 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
|
||||
|
||||
struct tKey {
|
||||
eKeys type;
|
||||
char *name;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
class cKey : public cListObject {
|
||||
|
4
menu.c
4
menu.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: menu.c 1.460 2007/08/18 09:03:05 kls Exp $
|
||||
* $Id: menu.c 1.461 2007/08/24 13:15:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "menu.h"
|
||||
@ -1040,7 +1040,7 @@ int cMenuScheduleItem::Compare(const cListObject &ListObject) const
|
||||
return r;
|
||||
}
|
||||
|
||||
static char *TimerMatchChars = " tT";
|
||||
static const char *TimerMatchChars = " tT";
|
||||
|
||||
bool cMenuScheduleItem::Update(bool Force)
|
||||
{
|
||||
|
4
rcu.c
4
rcu.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: rcu.c 1.15 2006/12/02 11:12:28 kls Exp $
|
||||
* $Id: rcu.c 1.16 2007/08/24 13:15:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "rcu.h"
|
||||
@ -257,7 +257,7 @@ void cRcuRemote::SetNumber(int n, bool Hex)
|
||||
data = m;
|
||||
}
|
||||
|
||||
void cRcuRemote::SetString(char *s)
|
||||
void cRcuRemote::SetString(const char *s)
|
||||
{
|
||||
const char *chars = mode == modeH ? "0123456789ABCDEF" : "0123456789-EHLP ";
|
||||
int n = 0;
|
||||
|
4
rcu.h
4
rcu.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: rcu.h 1.6 2005/12/31 15:09:25 kls Exp $
|
||||
* $Id: rcu.h 1.7 2007/08/24 13:15:48 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __RCU_H
|
||||
@ -31,7 +31,7 @@ private:
|
||||
void SetMode(unsigned char Mode);
|
||||
void SetNumber(int n, bool Hex = false);
|
||||
void SetPoints(unsigned char Dp, bool On);
|
||||
void SetString(char *s);
|
||||
void SetString(const char *s);
|
||||
bool DetectCode(unsigned char *Code);
|
||||
virtual void Action(void);
|
||||
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);
|
||||
|
4
thread.c
4
thread.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: thread.c 1.61 2007/06/17 12:43:40 kls Exp $
|
||||
* $Id: thread.c 1.62 2007/08/24 13:15:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "thread.h"
|
||||
@ -416,7 +416,7 @@ bool cPipe::Open(const char *Command, const char *Mode)
|
||||
return false;
|
||||
}
|
||||
|
||||
char *mode = "w";
|
||||
const char *mode = "w";
|
||||
int iopipe = 0;
|
||||
|
||||
if (pid > 0) { // parent process
|
||||
|
Loading…
Reference in New Issue
Block a user