[vlc-devel] [PATCH 01/12] Replace #warning with '#pragma message'.
Felix Abecassis
felix.abecassis at gmail.com
Fri Nov 29 17:41:26 CET 2013
Directive #warning is not supported by MSVC and triggers an
error. Unknown pragmas are simply ignored.
---
bin/rootwrap.c | 2 +-
compat/flockfile.c | 2 +-
compat/fsync.c | 2 +-
lib/media.c | 2 +-
lib/media_list.c | 2 +-
modules/access/bluray.c | 2 +-
modules/access/dtv/linux.c | 4 ++--
modules/access/dvb/linux_dvb.c | 2 +-
modules/access/dvb/scan.c | 2 +-
modules/access/jack.c | 2 +-
modules/access/mtp.c | 2 +-
modules/codec/avcodec/avcodec.c | 2 +-
modules/codec/avcodec/vaapi.c | 2 +-
modules/codec/crystalhd.c | 2 +-
modules/codec/wmafixed/wmafixed.h | 2 +-
modules/control/motion.c | 4 ++--
modules/control/rc.c | 2 +-
modules/demux/avformat/demux.c | 2 +-
modules/demux/mkv/mkv.cpp | 2 +-
modules/demux/ogg.c | 2 +-
modules/gui/qt4/dialogs/firstrun.cpp | 2 +-
modules/lua/libs/playlist.c | 2 +-
modules/misc/rtsp.c | 4 ++--
modules/video_chroma/i420_yuy2.c | 2 +-
modules/video_output/msw/directx.c | 2 +-
src/input/clock.c | 2 +-
src/misc/objects.c | 2 +-
src/modules/bank.c | 2 +-
src/network/io.c | 2 +-
src/playlist/thread.c | 2 +-
src/posix/thread.c | 6 +++---
src/text/url.c | 2 +-
src/video_output/event.h | 4 ++--
src/win32/dirs.c | 2 +-
src/win32/netconf.c | 2 +-
src/win32/specific.c | 3 +--
src/win32/winsock.c | 2 +-
test/libvlc/media.c | 2 +-
38 files changed, 44 insertions(+), 45 deletions(-)
diff --git a/bin/rootwrap.c b/bin/rootwrap.c
index 03598a9..e35fc91 100644
--- a/bin/rootwrap.c
+++ b/bin/rootwrap.c
@@ -41,7 +41,7 @@
#include <netinet/in.h>
#if defined (AF_INET6) && !defined (IPV6_V6ONLY)
-# warning Uho, your IPv6 support is broken and has been disabled. Fix your C library.
+# pragma message("Uho, your IPv6 support is broken and has been disabled. Fix your C library.")
# undef AF_INET6
#endif
diff --git a/compat/flockfile.c b/compat/flockfile.c
index d01fd1f..429a282 100644
--- a/compat/flockfile.c
+++ b/compat/flockfile.c
@@ -26,7 +26,7 @@
#ifdef _WIN32
# ifndef HAVE__LOCK_FILE
-# warning Broken SDK: VLC logs will be garbage.
+# pragma message("Broken SDK: VLC logs will be garbage.")
# define _lock_file(s) ((void)(s))
# define _unlock_file(s) ((void)(s))
# undef _getc_nolock
diff --git a/compat/fsync.c b/compat/fsync.c
index a84ab63..5743966 100644
--- a/compat/fsync.c
+++ b/compat/fsync.c
@@ -32,7 +32,7 @@ int fsync (int fd)
/* WinCE can use FlushFileBuffers() but it operates on file handles */
return _commit (fd);
#else
-# warning fsync() not implemented!
+# pragma message("fsync() not implemented!")
return 0;
#endif
}
diff --git a/lib/media.c b/lib/media.c
index 7acfb69..f4a9f1f 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -617,7 +617,7 @@ libvlc_media_get_duration( libvlc_media_t * p_md )
static int media_parse(libvlc_media_t *media)
{
/* TODO: fetcher and parser independent of playlist */
-#warning FIXME: remove pl_Get
+#pragma message("FIXME: remove pl_Get")
playlist_t *playlist = pl_Get(media->p_libvlc_instance->p_libvlc_int);
/* TODO: Fetch art on need basis. But how not to break compatibility? */
diff --git a/lib/media_list.c b/lib/media_list.c
index 1d57025..4ad6dff 100644
--- a/lib/media_list.c
+++ b/lib/media_list.c
@@ -267,7 +267,7 @@ libvlc_media_list_add_file_content( libvlc_media_list_t * p_mlist,
if( libvlc_media_list_add_media( p_mlist, p_md ) )
{
-#warning Missing error handling!
+#pragma message("Missing error handling!")
/* printerr and leaks */
return -1;
}
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 0b98815..b083b73 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -260,7 +260,7 @@ static void FindMountPoint(char **file)
}
}
#else
-# warning Disc device to mount point not implemented
+# pragma message("Disc device to mount point not implemented")
#endif
}
diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index ce88747..7881bfe 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -998,7 +998,7 @@ int dvb_set_dvbt2 (dvb_device_t *d, uint32_t freq, const char *modstr,
# endif
plp);
#else
-# warning DVB-T2 needs Linux DVB version 5.3 or later.
+# pragma message("DVB-T2 needs Linux DVB version 5.3 or later.")
msg_Err (d->obj, "DVB-T2 support not compiled-in");
(void) freq; (void) modstr; (void) fec; (void) bandwidth;
(void) transmit_mode; (void) guard;
@@ -1020,7 +1020,7 @@ int dvb_set_isdbc (dvb_device_t *d, uint32_t freq, const char *modstr,
#if DVBv5(5)
DTV_DELIVERY_SYSTEM, SYS_DVBC_ANNEX_C,
#else
-# warning ISDB-C might need Linux DVB version 5.5 or later.
+# pragma message("ISDB-C might need Linux DVB version 5.5 or later.")
DTV_DELIVERY_SYSTEM, SYS_DVBC_ANNEX_AC,
#endif
DTV_FREQUENCY, freq, DTV_MODULATION, mod,
diff --git a/modules/access/dvb/linux_dvb.c b/modules/access/dvb/linux_dvb.c
index d995c3a..4d3ed8e 100644
--- a/modules/access/dvb/linux_dvb.c
+++ b/modules/access/dvb/linux_dvb.c
@@ -589,7 +589,7 @@ static int FrontendInfo( access_t *p_access )
if( p_frontend->info.caps & FE_CAN_TURBO_FEC)
msg_Dbg(p_access, " Turbo FEC modulation");
#else
-# warning Please update your Linux kernel headers!
+# pragma message("Please update your Linux kernel headers!")
#endif
if( p_frontend->info.caps & FE_CAN_2G_MODULATION)
msg_Dbg(p_access, " 2nd generation modulation (DVB-S2)");
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 0122654..eca2101 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -114,7 +114,7 @@ struct scan_session_t
dvbpsi_handle nit;
dvbpsi_nit_t *p_nit;
#else
-# warning NIT is not supported by your libdvbpsi version
+# pragma message("NIT is not supported by your libdvbpsi version")
#endif
};
diff --git a/modules/access/jack.c b/modules/access/jack.c
index 12e0710..4bb184a 100644
--- a/modules/access/jack.c
+++ b/modules/access/jack.c
@@ -452,7 +452,7 @@ static block_t *GrabJack( demux_t *p_demux )
if( i_read < 100 ) /* avoid small read */
{ /* vlc has too much free time on its hands? */
#undef msleep
-#warning Hmm.... looks wrong
+#pragma message("Hmm.... looks wrong")
msleep(1000);
return NULL;
}
diff --git a/modules/access/mtp.c b/modules/access/mtp.c
index a01aecc..9b58edd 100644
--- a/modules/access/mtp.c
+++ b/modules/access/mtp.c
@@ -111,7 +111,7 @@ static int Open( vlc_object_t *p_this )
) != NULL )
{
free( p_access->psz_filepath );
-#warning Oooh no! Not tempnam()!
+#pragma message("Oooh no! Not tempnam()!")
p_access->psz_filepath = tempnam( NULL, "vlc" );
if( p_access->psz_filepath == NULL )
{
diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index d403202..f4b055c 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -45,7 +45,7 @@
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 53, 34, 0 )
# error You must update libavcodec to a version >= 53.34.0
#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 54, 25, 0 )
-# warning You should update libavcodec to a version >= 54.25.0
+# pragma message("You should update libavcodec to a version >= 54.25.0")
#endif
/*****************************************************************************
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index 1a7b227..0ff70c9 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -218,7 +218,7 @@ static int Open( vlc_va_t *va, int i_codec_id )
return VLC_SUCCESS;
error:
-#warning Leaks!
+#pragma message("Leaks!")
return VLC_EGENERIC;
}
diff --git a/modules/codec/crystalhd.c b/modules/codec/crystalhd.c
index 3c838c4..f04a601 100644
--- a/modules/codec/crystalhd.c
+++ b/modules/codec/crystalhd.c
@@ -62,7 +62,7 @@
And forcing users to install the right dll at the right place will not work
Therefore, we need to dl_open and resolve the symbols */
#ifdef USE_DL_OPENING
-# warning DLL opening mode
+# pragma message("DLL opening mode")
# define BC_FUNC( a ) Our ## a
# define BC_FUNC_PSYS( a ) p_sys->Our ## a
#else
diff --git a/modules/codec/wmafixed/wmafixed.h b/modules/codec/wmafixed/wmafixed.h
index 8314cc6..d45bca1 100644
--- a/modules/codec/wmafixed/wmafixed.h
+++ b/modules/codec/wmafixed/wmafixed.h
@@ -84,7 +84,7 @@ long fsincos(unsigned long phase, int32_t *cos);
static inline int32_t fixmul32(int32_t x, int32_t y)
{
#if PRECISION != 16
-#warning Coldfire fixmul32() only works for PRECISION == 16
+# pragma message("Coldfire fixmul32() only works for PRECISION == 16")
#endif
int32_t t1;
asm (
diff --git a/modules/control/motion.c b/modules/control/motion.c
index 5f58aae..9834bc2 100644
--- a/modules/control/motion.c
+++ b/modules/control/motion.c
@@ -134,7 +134,7 @@ static void *RunIntf( void *data )
bool b_change = false;
/* Wait a bit, get orientation, change filter if necessary */
-#warning FIXME: check once (or less) per picture, not once per interval
+#pragma message("FIXME: check once (or less) per picture, not once per interval")
msleep( INTF_IDLE_SLEEP );
int canc = vlc_savecancel();
@@ -159,7 +159,7 @@ static void *RunIntf( void *data )
if( b_change )
{
-#warning FIXME: refactor this plugin as a video filter!
+#pragma message("FIXME: refactor this plugin as a video filter!")
input_thread_t *p_input;
p_input = playlist_CurrentInput( pl_Get( p_intf ) );
diff --git a/modules/control/rc.c b/modules/control/rc.c
index ee9fd83..dc10f26 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -523,7 +523,7 @@ static void *Run( void *data )
var_AddCallback( p_sys->p_input, "intf-event", InputEvent, p_intf );
}
}
-#warning This is not reliable...
+#pragma message("This is not reliable...")
else if( p_sys->p_input->b_dead )
{
var_DelCallback( p_sys->p_input, "intf-event", InputEvent, p_intf );
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index e340281..b617c5c 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -330,7 +330,7 @@ int OpenDemux( vlc_object_t *p_this )
*fmt.video.p_palette = *(video_palette_t *)cc->palctrl;
}
#else
-# warning FIXME: implement palette transmission
+# pragma message("FIXME: implement palette transmission")
#endif
psz_type = "video";
fmt.video.i_frame_rate = cc->time_base.den;
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index edf6a6f..32cabff 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -189,7 +189,7 @@ static int Open( vlc_object_t * p_this )
// test whether this file belongs to our family
const uint8_t *p_peek;
bool file_ok = false;
-#warning Memory leak!
+#pragma message("Memory leak!")
std::string s_url = vlc_path2uri( s_filename.c_str(), "file" );
stream_t *p_file_stream = stream_UrlNew(
p_demux,
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index a9c7ceb..db2c3f4 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -993,7 +993,7 @@ static void Ogg_DecodePacket( demux_t *p_demux,
}
else
{
-#warning Memory leak
+#pragma message("Memory leak")
p_stream->i_headers = 0;
p_stream->p_headers = NULL;
free( p_org );
diff --git a/modules/gui/qt4/dialogs/firstrun.cpp b/modules/gui/qt4/dialogs/firstrun.cpp
index d440710..b141f71 100644
--- a/modules/gui/qt4/dialogs/firstrun.cpp
+++ b/modules/gui/qt4/dialogs/firstrun.cpp
@@ -50,7 +50,7 @@ void FirstRun::save()
/* FIXME Should not save here. This will not work as expected if another
* plugin overwrote items of its own. */
-#warning FIXME
+#pragma message("FIXME")
/* We have to save here because the user may not launch Prefs */
config_SaveConfigFile( p_intf );
close();
diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c
index 29f5e4b..e5c6ce7 100644
--- a/modules/lua/libs/playlist.c
+++ b/modules/lua/libs/playlist.c
@@ -323,7 +323,7 @@ static int vlclua_playlist_current( lua_State *L )
vlc_object_release( p_input );
}
-#warning Indexing input items by ID is unsafe,
+#pragma message("Indexing input items by ID is unsafe,")
lua_pushinteger( L, id );
return 1;
}
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index d484c25..6dd91ad 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -998,7 +998,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
answer->p_body = NULL;
break;
}
-#warning Should use secure randomness here! (spoofing risk)
+#pragma message("Should use secure randomness here! (spoofing risk)")
if( asprintf( &psz_new, "%lu", vlc_mrand48() ) < 0 )
return VLC_ENOMEM;
psz_session = psz_new;
@@ -1324,7 +1324,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
answer->p_body = NULL;
break;
}
-#warning Session ID should be securely random (spoofing risk)
+#pragma message("Session ID should be securely random (spoofing risk)")
if( asprintf( &psz_new, "%lu", vlc_mrand48() ) < 0 )
return VLC_ENOMEM;
psz_session = psz_new;
diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index 7eb317c..e51fdee 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -253,7 +253,7 @@ static void I420_YUY2( filter_t *p_filter, picture_t *p_source,
}
}
}
-#warning FIXME: converting widths % 16 but !widths % 32 is broken on altivec
+#pragma message("FIXME: converting widths % 16 but !widths % 32 is broken on altivec")
#if 0
else if( !( ( p_filter->fmt_in.video.i_width % 16 ) |
( p_filter->fmt_in.video.i_height % 4 ) ) )
diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c
index 8cbdad3..8d5c1d5 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directx.c
@@ -54,7 +54,7 @@
#include "common.h"
#ifdef UNICODE
-# warning "Unicode mode not tested"
+# pragma message("Unicode mode not tested")
#endif
#ifdef UNICODE
diff --git a/src/input/clock.c b/src/input/clock.c
index 1467345..f15217e 100644
--- a/src/input/clock.c
+++ b/src/input/clock.c
@@ -528,7 +528,7 @@ void input_clock_GetSystemOrigin( input_clock_t *cl, mtime_t *pi_system, mtime_t
vlc_mutex_unlock( &cl->lock );
}
-#warning "input_clock_SetJitter needs more work"
+#pragma message("input_clock_SetJitter needs more work")
void input_clock_SetJitter( input_clock_t *cl,
mtime_t i_pts_delay, int i_cr_average )
{
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 0026ea8..a32b259 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -78,7 +78,7 @@
# include <sys/eventfd.h>
# ifndef EFD_CLOEXEC
# define EFD_CLOEXEC 0
-# warning EFD_CLOEXEC missing. Consider updating libc.
+# pragma message("EFD_CLOEXEC missing. Consider updating libc.")
# endif
#endif
diff --git a/src/modules/bank.c b/src/modules/bank.c
index 22cfaea..c506a43 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -645,7 +645,7 @@ int module_Map (vlc_object_t *obj, module_t *module)
if (module->parent != NULL)
module = module->parent;
-#warning FIXME: race condition!
+#pragma message("FIXME: race condition!")
if (module->b_loaded)
return 0;
assert (module->psz_filename != NULL);
diff --git a/src/network/io.c b/src/network/io.c
index 6cadffa..8a72aea 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -102,7 +102,7 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
#if defined (_WIN32)
# ifndef IPV6_PROTECTION_LEVEL
-# warning Please update your C library headers.
+# pragma message("Please update your C library headers.")
# define IPV6_PROTECTION_LEVEL 23
# define PROTECTION_LEVEL_UNRESTRICTED 10
# endif
diff --git a/src/playlist/thread.c b/src/playlist/thread.c
index 594fb6b..34cbf9a 100644
--- a/src/playlist/thread.c
+++ b/src/playlist/thread.c
@@ -451,7 +451,7 @@ static void LoopInput( playlist_t *p_playlist )
input_Stop( p_input, true );
}
-#warning Unsynchronized access to *p_input flags...
+#pragma message("warning Unsynchronized access to *p_input flags...")
/* This input is dead. Remove it ! */
if( p_input->b_dead )
{
diff --git a/src/posix/thread.c b/src/posix/thread.c
index 514f592..ddee2b4 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -82,7 +82,7 @@ static clockid_t vlc_clock_id;
# else
/* No POSIX monotonic clock support */
# define vlc_clock_id (CLOCK_REALTIME)
-# warning Monotonic clock not available. Expect timing issues.
+# pragma message("Monotonic clock not available. Expect timing issues.")
# endif /* _POSIX_MONOTONIC_CLOKC */
@@ -113,7 +113,7 @@ int nanosleep (struct timespec *, struct timespec *);
# endif
# define vlc_clock_setup() (void)0
-# warning Monotonic clock not available. Expect timing issues.
+# pragma message("Monotonic clock not available. Expect timing issues.")
#endif /* _POSIX_TIMERS */
static struct timespec mtime_to_ts (mtime_t date)
@@ -1006,7 +1006,7 @@ unsigned vlc_GetCPUCount(void)
#elif defined(_SC_NPROCESSORS_CONF)
return sysconf(_SC_NPROCESSORS_CONF);
#else
-# warning "vlc_GetCPUCount is not implemented for your platform"
+# pragma message("vlc_GetCPUCount is not implemented for your platform")
return 1;
#endif
}
diff --git a/src/text/url.c b/src/text/url.c
index 40043ba..b744693 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -178,7 +178,7 @@ char *vlc_path2uri (const char *path, const char *scheme)
path[0]) == -1)
buf = NULL;
path += 2;
-# warning Drive letter-relative path not implemented!
+#pragma message("warning Drive letter-relative path not implemented!")
if (path[0] != DIR_SEP_CHAR)
return NULL;
}
diff --git a/src/video_output/event.h b/src/video_output/event.h
index c8123e8..cb6f382 100644
--- a/src/video_output/event.h
+++ b/src/video_output/event.h
@@ -39,7 +39,7 @@
static inline void vout_SendEventClose(vout_thread_t *vout)
{
-#warning FIXME: implement video close event
+#pragma message("warning FIXME: implement video close event")
/* FIXME: this code is disabled as it breaks the non-playlist cases */
//playlist_Stop(pl_Get(vout));
(void) vout;
@@ -218,7 +218,7 @@ static inline void vout_SendEventSnapshot(vout_thread_t *vout, const char *filen
var_SetString(vout->p_libvlc, "snapshot-file", filename);
}
-#warning "FIXME clean up postproc event"
+#pragma message("FIXME clean up postproc event")
extern void vout_InstallDeprecatedPostProcessing(vout_thread_t *);
extern void vout_UninstallDeprecatedPostProcessing(vout_thread_t *);
diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 3d54e9e..4d550fd 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -95,7 +95,7 @@ static char *config_GetAppDir (void)
return psz_dir;
}
-#warning FIXME Use known folders on Vista and above
+#pragma message("FIXME Use known folders on Vista and above")
char *config_GetUserDir (vlc_userdir_t type)
{
switch (type)
diff --git a/src/win32/netconf.c b/src/win32/netconf.c
index accdddf..a4d8d43 100644
--- a/src/win32/netconf.c
+++ b/src/win32/netconf.c
@@ -62,7 +62,7 @@ char *vlc_getProxyUrl(const char *url)
key, &len ) == ERROR_SUCCESS )
{
/* FIXME: This is lame. The string should be tokenized. */
-#warning FIXME.
+#pragma message("FIXME.")
char *psz_proxy = strstr( (char *)key, "http=" );
if( psz_proxy != NULL )
{
diff --git a/src/win32/specific.c b/src/win32/specific.c
index 499a20c..245666e 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -291,8 +291,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
{
i_options++;
}
-
-#warning URI conversion must be done in calling process instead!
+#pragma message("warning URI conversion must be done in calling process instead!")
/* FIXME: This breaks relative paths if calling vlc.exe is
* started from a different working directory. */
char *psz_URI = NULL;
diff --git a/src/win32/winsock.c b/src/win32/winsock.c
index ea04f17..029bd0f 100644
--- a/src/win32/winsock.c
+++ b/src/win32/winsock.c
@@ -209,7 +209,7 @@ ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags)
return recvd;
}
#else
-# warning Out-of-date Winsock header files!
+# pragma message("Out-of-date Winsock header files!")
#endif
return -1;
}
diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index e66095e..b76cfad 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -60,7 +60,7 @@ static void test_media_preparsed(const char** argv, int argc)
libvlc_media_track_info_t *tracks = NULL;
int num = libvlc_media_get_tracks_info(media, &tracks);
-#warning libvlc_media_get_tracks_info is a broken function.
+#pragma message("libvlc_media_get_tracks_info is a broken function.")
// This is broken.
// assert(num == 1);
if (num != 1)
--
1.7.9
More information about the vlc-devel
mailing list