1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added '__attribute__' to functions that use printf() like parameters

This commit is contained in:
Klaus Schmidinger 2005-10-09 11:14:14 +02:00
parent 22ee421be9
commit 325163c0ef
5 changed files with 9 additions and 6 deletions

View File

@ -1343,6 +1343,7 @@ Darren Salt <linux@youmustbejoking.demon.co.uk>
pages
for a patch that was used to add the command line options '--lirc', '--rcu' and
'--no-kbd'
for adding '__attribute__' to functions that use printf() like parameters
Sean Carlos <seanc@libero.it>
for translating OSD texts to the Italian language

View File

@ -3895,3 +3895,5 @@ Video Disk Recorder Revision History
Setup.MenuScrollWrap is true (thanks to Enrico Scholz).
- Making sure no item is displayed as "current" if Up, Down, Left or Right is
pressed in a menu with no selectable items.
- Added '__attribute__' to functions that use printf() like parameters (thanks
to Darren Salt).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: svdrp.h 1.23 2005/08/28 14:10:32 kls Exp $
* $Id: svdrp.h 1.24 2005/10/09 11:11:59 kls Exp $
*/
#ifndef __SVDRP_H
@ -51,7 +51,7 @@ private:
time_t lastActivity;
void Close(bool Timeout = false);
bool Send(const char *s, int length = -1);
void Reply(int Code, const char *fmt, ...);
void Reply(int Code, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
void PrintHelpTopics(const char **hp);
void CmdCHAN(const char *Option);
void CmdCLRE(const char *Option);

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: thread.h 1.30 2005/08/14 11:21:48 kls Exp $
* $Id: thread.h 1.31 2005/10/09 11:12:32 kls Exp $
*/
#ifndef __THREAD_H
@ -106,7 +106,7 @@ public:
///< the thread starts and stops. The Start() function must be called
///< to actually start the thread.
virtual ~cThread();
void SetDescription(const char *Description, ...);
void SetDescription(const char *Description, ...) __attribute__ ((format (printf, 2, 3)));
bool Start(void);
///< Actually starts the thread.
bool Active(void);

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: tools.h 1.79 2005/10/01 12:43:31 kls Exp $
* $Id: tools.h 1.80 2005/10/09 11:13:06 kls Exp $
*/
#ifndef __TOOLS_H
@ -81,7 +81,7 @@ public:
operator const char * () const { return s; } // for use in (const char *) context
const char * operator*() const { return s; } // for use in (const void *) context (printf() etc.)
cString &operator=(const cString &String);
static cString sprintf(const char *fmt, ...);
static cString sprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
};
ssize_t safe_read(int filedes, void *buffer, size_t size);