mirror of
https://github.com/mpv-player/mpv
synced 2024-10-06 14:54:02 +02:00
Remove #warning preprocessor directives
The #warning preprocessor directive is non-standard and not available with all compilers. Furthermore, the warnings it causes are noisy and have not led to getting any of the underlying issues fixed in the space of a decade. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2865993869
commit
ed8e92afcc
@ -393,14 +393,14 @@ static int validate_codec(codecs_t *c, int type)
|
||||
}
|
||||
|
||||
#if 0
|
||||
#warning codec->driver == 4;... <- this should not be put in here...
|
||||
#warning Where are they defined ????????????
|
||||
//FIXME: codec->driver == 4;... <- this should not be put in here...
|
||||
//FIXME: Where are they defined ????????????
|
||||
if (!c->dll && (c->driver == 4 ||
|
||||
(c->driver == 2 && type == TYPE_VIDEO))) {
|
||||
mp_tmsg(MSGT_CODECCFG,MSGL_ERR,"\ncodec(%s) needs a 'dll'!\n", c->name);
|
||||
return 0;
|
||||
}
|
||||
#warning Can guid.f1 be 0? How does one know that it was not given?
|
||||
// FIXME: Can guid.f1 be 0? How does one know that it was not given?
|
||||
// if (!(codec->flags & CODECS_FLAG_AUDIO) && codec->driver == 4)
|
||||
|
||||
if (type == TYPE_VIDEO)
|
||||
|
@ -322,7 +322,7 @@ static int demux_vivo_fill_buffer(demuxer_t *demux, demux_stream_t *dsds){
|
||||
if (c == 0x82)
|
||||
{
|
||||
/* ok, this works, but pts calculating from header is required! */
|
||||
#warning "Calculate PTS from picture header!"
|
||||
/* FIXME: "Calculate PTS from picture header!" */
|
||||
prefix = 1;
|
||||
c = stream_read_char(demux->stream);
|
||||
mp_msg(MSGT_DEMUX, MSGL_V, "packet 0x82(pos=%u) chunk=%x\n",
|
||||
|
@ -687,7 +687,7 @@ int DS_VideoDecoder_GetValue(DS_VideoDecoder *this, const char* name, int* value
|
||||
IHidden* hidden=(IHidden*)((int)m_pDS_Filter->m_pFilter+0xb8);
|
||||
if (strcmp(name, "Quality") == 0)
|
||||
{
|
||||
#warning NOT SURE
|
||||
// NOT SURE
|
||||
int r = hidden->vt->GetSmth2(hidden, &value);
|
||||
if (value >= 10)
|
||||
value -= 10;
|
||||
@ -715,7 +715,7 @@ int DS_VideoDecoder_GetValue(DS_VideoDecoder *this, const char* name, int* value
|
||||
Debug printf("No such interface\n");
|
||||
return -1;
|
||||
}
|
||||
#warning FIXME
|
||||
// FIXME
|
||||
int recordpar[30];
|
||||
recordpar[0]=0x7c;
|
||||
recordpar[1]=fccIV50;
|
||||
|
@ -473,7 +473,7 @@ LPVOID WINAPI VirtualAlloc(LPVOID address, DWORD size, DWORD type, DWORD protec
|
||||
}
|
||||
if(str->state==0)
|
||||
{
|
||||
#warning FIXME
|
||||
// FIXME
|
||||
if( ((unsigned)address >= (unsigned)str->address)
|
||||
&& ((unsigned)address+size<=(unsigned)str->address+str->mapping_size)
|
||||
&& (type & MEM_COMMIT))
|
||||
|
@ -292,7 +292,7 @@ static DWORD fixup_imports( WINE_MODREF *wm )
|
||||
if (characteristics_detection && !pe_imp->u.Characteristics)
|
||||
break;
|
||||
|
||||
//#warning FIXME: here we should fill imports
|
||||
/* FIXME: here we should fill imports */
|
||||
TRACE("Loading imports for %s.dll\n", name);
|
||||
|
||||
if (pe_imp->u.OriginalFirstThunk != 0) {
|
||||
@ -452,7 +452,7 @@ HMODULE PE_LoadImage( int handle, LPCSTR filename, WORD *version )
|
||||
file_size=lseek(handle, 0, SEEK_END);
|
||||
lseek(handle, 0, SEEK_SET);
|
||||
|
||||
//#warning fix CreateFileMappingA
|
||||
// fix CreateFileMappingA
|
||||
mapping = CreateFileMappingA( handle, NULL, PAGE_READONLY | SEC_COMMIT,
|
||||
0, 0, NULL );
|
||||
if (!mapping)
|
||||
|
@ -218,7 +218,7 @@ LRESULT VFWAPI ICClose(HIC hic) {
|
||||
/* FIXME: correct? */
|
||||
// CloseDriver(whic->hdrv,0,0);
|
||||
DrvClose(whic->hdrv);
|
||||
//#warning FIXME: DrvClose
|
||||
/* FIXME: DrvClose */
|
||||
free(whic);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1735,7 +1735,7 @@ static int WINAPI expLoadStringA(long instance, long id, void* buf, long size)
|
||||
|
||||
static long WINAPI expMultiByteToWideChar(long v1, long v2, char* s1, long siz1, short* s2, int siz2)
|
||||
{
|
||||
#warning FIXME
|
||||
/* FIXME */
|
||||
int i;
|
||||
int result;
|
||||
if(s2==0)
|
||||
@ -3190,7 +3190,7 @@ static int WINAPI expGetProcessVersion(int pid)
|
||||
}
|
||||
static int WINAPI expGetCurrentThread(void)
|
||||
{
|
||||
#warning FIXME!
|
||||
/* FIXME! */
|
||||
dbgprintf("GetCurrentThread() => %x\n", 0xcfcf9898);
|
||||
return 0xcfcf9898;
|
||||
}
|
||||
|
@ -51,7 +51,6 @@
|
||||
|
||||
#ifdef CONFIG_RADIO_V4L
|
||||
#include <linux/videodev.h>
|
||||
#warning "V4L is deprecated and will be removed in future"
|
||||
#endif
|
||||
|
||||
#endif // !IOCTL_BT848_H_NAME
|
||||
|
@ -385,7 +385,7 @@ static void S3InitStreamsOld (void)
|
||||
format = 7 << 24;
|
||||
break;
|
||||
}
|
||||
//#warning enable this again
|
||||
// FIXME: enable this again
|
||||
OUTREG (PSTREAM_FBSIZE_REG, info->screen_y * info->screen_x * (info->bpp >> 3));
|
||||
OUTREG (PSTREAM_WINDOW_START_REG, OS_XY (0, 0));
|
||||
OUTREG (PSTREAM_WINDOW_SIZE_REG, OS_WH (info->screen_x, info->screen_y));
|
||||
|
Loading…
Reference in New Issue
Block a user