Description From  Pavol Rusnak   2008-11-27 05:51:44   (-) [reply]

src/video/fbcon/SDL_fbvideo.c:283: warning: ordered comparison of pointer with
integer zero

The source code is

               if (fgets(line,length,f)<=0)

Suggest replace with

               if (fgets(line,length,f) == 0)

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2009-02-17 05:25:25 +00:00
parent ac129ff469
commit 025e05e533

View File

@@ -280,7 +280,7 @@ static int read_fbmodes_line(FILE*f, char* line, int length)
/* find a relevant line */
do
{
if (fgets(line,length,f)<=0)
if (!fgets(line,length,f))
return 0;
c=line;
while(((*c=='\t')||(*c==' '))&&(*c!=0))