[vlc-devel] commit: osd: Fix a unused variable warning. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Aug 20 18:38:28 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 18:33:48 2009 +0200| [f4b8250a1843c94523734a7e4257d960cfabddf1] | committer: Pierre d'Herbemont
osd: Fix a unused variable warning.
Reported by Hugo Beauzée-Luyssen.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4b8250a1843c94523734a7e4257d960cfabddf1
---
modules/misc/osd/osd_menu.c | 2 ++
modules/misc/osd/osd_menu.h | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/misc/osd/osd_menu.c b/modules/misc/osd/osd_menu.c
index f7b95d3..57cd24e 100644
--- a/modules/misc/osd/osd_menu.c
+++ b/modules/misc/osd/osd_menu.c
@@ -37,6 +37,8 @@
#undef OSD_MENU_DEBUG
+const char * const ppsz_button_states[] = { "unselect", "select", "pressed" };
+
/*****************************************************************************
* Local prototypes
*****************************************************************************/
diff --git a/modules/misc/osd/osd_menu.h b/modules/misc/osd/osd_menu.h
index dcde173..1505fb3 100644
--- a/modules/misc/osd/osd_menu.h
+++ b/modules/misc/osd/osd_menu.h
@@ -24,7 +24,7 @@
#ifndef _OSD_MENU_PARSER_H_
#define _OSD_MENU_PARSER_H_
-static const char *ppsz_button_states[] = { "unselect", "select", "pressed" };
+extern const char * const ppsz_button_states[3];
/* OSD Menu structure support routines for internal use by
* OSD Menu configuration file parsers only.
More information about the vlc-devel
mailing list