[ros-diffs] [dgorbachev] 37833: Silence compiler warnings (11/11).

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Wed Dec 3 18:37:59 CET 2008


Author: dgorbachev
Date: Wed Dec  3 11:37:58 2008
New Revision: 37833

URL: http://svn.reactos.org/svn/reactos?rev=37833&view=rev
Log:
Silence compiler warnings (11/11).

Modified:
    trunk/reactos/tools/cdmake/cdmake.c
    trunk/reactos/tools/rgenstat/rgenstat.c

Modified: trunk/reactos/tools/cdmake/cdmake.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/cdmake.c?rev=37833&r1=37832&r2=37833&view=diff
==============================================================================
--- trunk/reactos/tools/cdmake/cdmake.c [iso-8859-1] (original)
+++ trunk/reactos/tools/cdmake/cdmake.c [iso-8859-1] Wed Dec  3 11:37:58 2008
@@ -568,11 +568,11 @@
       break;
     }
 
-    if ( (t-d->name_on_cd) < sizeof(d->name_on_cd)-1 )
+    if ( (size_t)(t-d->name_on_cd) < sizeof(d->name_on_cd)-1 )
       *t++ = check_for_punctuation(*s, filename);
     else if (!joliet)
     error_exit ("'%s' is not ISO-9660, aborting...", filename );
-    if ( (n-d->name) < sizeof(d->name)-1 )
+    if ( (size_t)(n-d->name) < sizeof(d->name)-1 )
       *n++ = *s;
     else if (!joliet)
       error_exit ( "'%s' is not ISO-9660, aborting...", filename );
@@ -587,7 +587,7 @@
   t = d->extension_on_cd;
   while ( *s != 0 )
   {
-    if ( (t-d->extension_on_cd) < (sizeof(d->extension_on_cd)-1) )
+    if ( (size_t)(t-d->extension_on_cd) < sizeof(d->extension_on_cd)-1 )
       *t++ = check_for_punctuation(*s, filename);
     else if (!joliet)
       error_exit ( "'%s' is not ISO-9660, aborting...", filename );

Modified: trunk/reactos/tools/rgenstat/rgenstat.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rgenstat/rgenstat.c?rev=37833&r1=37832&r2=37833&view=diff
==============================================================================
--- trunk/reactos/tools/rgenstat/rgenstat.c [iso-8859-1] (original)
+++ trunk/reactos/tools/rgenstat/rgenstat.c [iso-8859-1] Wed Dec  3 11:37:58 2008
@@ -59,7 +59,7 @@
 static FILE *file_handle = NULL;
 static char *file_buffer = NULL;
 static unsigned int file_size = 0;
-static int file_pointer = 0;
+static unsigned int file_pointer = 0;
 static char tagname[200];
 static PAPI_INFO api_info_list = NULL;
 
@@ -752,7 +752,7 @@
   PAPI_INFO api_info;
   PAPI_INFO next_api_info;
   char *buffer;
-  int size;
+  unsigned int size;
   int len;
 
   in = fopen(input_file, "rb");



More information about the Ros-diffs mailing list