lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r464333 - /lucene/lucy/trunk/charmonizer/metaquote/metaquote.c
Date Mon, 16 Oct 2006 00:28:05 GMT
Author: marvin
Date: Sun Oct 15 17:28:04 2006
New Revision: 464333

URL: http://svn.apache.org/viewvc?view=rev&rev=464333
Log:
Add a cast to silence a warning, remove an unused var.

Modified:
    lucene/lucy/trunk/charmonizer/metaquote/metaquote.c

Modified: lucene/lucy/trunk/charmonizer/metaquote/metaquote.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/metaquote/metaquote.c?view=diff&rev=464333&r1=464332&r2=464333
==============================================================================
--- lucene/lucy/trunk/charmonizer/metaquote/metaquote.c (original)
+++ lucene/lucy/trunk/charmonizer/metaquote/metaquote.c Sun Oct 15 17:28:04 2006
@@ -18,7 +18,7 @@
 /* Verify fseek and ftell.  Verify fread, too, but weakly.
  */
 #define Check_IO_Op(op) \
-    if ((op) == -1) \
+    if ((int)(op) == -1) \
         die("IO operation failed at line %d: %s", __LINE__, strerror(errno))
 
 int main(int argc, char **argv) 
@@ -26,7 +26,6 @@
     FILE   *in_fh, *out_fh;
     char   *source, *dest;
     size_t  source_len, dest_len;
-    int     chars_read;
 
     /* die unless both input and output filenames were supplied */
     if (argc != 3)



Mime
View raw message