avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject svn commit: r924892 - in /hadoop/avro/trunk: CHANGES.txt lang/c/examples/quickstop.c lang/c/src/schema.c lang/c/tests/test_avro_data.c lang/c/tests/test_cpp.cpp
Date Thu, 18 Mar 2010 16:52:11 GMT
Author: massie
Date: Thu Mar 18 16:52:11 2010
New Revision: 924892

URL: http://svn.apache.org/viewvc?rev=924892&view=rev
Log:
AVRO-481. Buildbot warning fixes. Contributed by Bruce Mitchener.

Modified:
    hadoop/avro/trunk/CHANGES.txt
    hadoop/avro/trunk/lang/c/examples/quickstop.c
    hadoop/avro/trunk/lang/c/src/schema.c
    hadoop/avro/trunk/lang/c/tests/test_avro_data.c
    hadoop/avro/trunk/lang/c/tests/test_cpp.cpp

Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=924892&r1=924891&r2=924892&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Thu Mar 18 16:52:11 2010
@@ -12,6 +12,8 @@ Avro 1.3.2 (unreleased)
     AVRO-480. avro_flush() is in the header, but not implemented
     (Bruce Mitchener via massie)
 
+    AVRO-481. Buildbot warning fixes (Bruce Mitchener via massie)
+
   BUG FIXES
 
     AVRO-479. Fix 'sign' target in top-level build.sh to generate md5

Modified: hadoop/avro/trunk/lang/c/examples/quickstop.c
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/examples/quickstop.c?rev=924892&r1=924891&r2=924892&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/examples/quickstop.c (original)
+++ hadoop/avro/trunk/lang/c/examples/quickstop.c Thu Mar 18 16:52:11 2010
@@ -16,6 +16,7 @@
  */
 
 #include <avro.h>
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -81,7 +82,7 @@ add_person(avro_file_writer_t db, const 
 	avro_datum_decref(phone_datum);
 	avro_datum_decref(person);
 
-	fprintf(stdout, "Successfully added %s, %s id=%lld\n", last, first, id);
+	fprintf(stdout, "Successfully added %s, %s id=%"PRId64"\n", last, first, id);
 }
 
 int print_person(avro_file_reader_t db, avro_schema_t reader_schema)
@@ -99,7 +100,7 @@ int print_person(avro_file_reader_t db, 
 
 		if (avro_record_get(person, "ID", &id_datum) == 0) {
 			avro_int64_get(id_datum, &i64);
-			fprintf(stdout, "%lld | ", i64);
+			fprintf(stdout, "%"PRId64" | ", i64);
 		}
 		if (avro_record_get(person, "First", &first_datum) == 0) {
 			avro_string_get(first_datum, &p);

Modified: hadoop/avro/trunk/lang/c/src/schema.c
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/src/schema.c?rev=924892&r1=924891&r2=924892&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/src/schema.c (original)
+++ hadoop/avro/trunk/lang/c/src/schema.c Thu Mar 18 16:52:11 2010
@@ -16,6 +16,7 @@
  */
 
 #include "avro_private.h"
+#include <inttypes.h>
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
@@ -1106,7 +1107,7 @@ static int write_fixed(avro_writer_t out
 	check(rval, avro_write_str(out, "{\"type\":\"fixed\",\"name\":\""));
 	check(rval, avro_write_str(out, fixed->name));
 	check(rval, avro_write_str(out, "\",\"size\":"));
-	snprintf(size, sizeof(size), "%lld", fixed->size);
+	snprintf(size, sizeof(size), "%"PRId64, fixed->size);
 	check(rval, avro_write_str(out, size));
 	return avro_write_str(out, "}");
 }

Modified: hadoop/avro/trunk/lang/c/tests/test_avro_data.c
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/tests/test_avro_data.c?rev=924892&r1=924891&r2=924892&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/tests/test_avro_data.c (original)
+++ hadoop/avro/trunk/lang/c/tests/test_avro_data.c Thu Mar 18 16:52:11 2010
@@ -16,10 +16,11 @@
  */
 
 #include "avro_private.h"
-#include <stdlib.h>
+#include <inttypes.h>
 #include <limits.h>
-#include <time.h>
+#include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 char buf[4096];
 avro_reader_t reader;
@@ -72,7 +73,7 @@ write_read_check(avro_schema_t writers_s
 				   datum);
 		if (size != avro_writer_tell(writer)) {
 			fprintf(stderr,
-				"Unable to calculate size %s validate=%d (%lld != %lld)\n",
+				"Unable to calculate size %s validate=%d (%"PRId64" != %"PRId64")\n",
 				type, validate, size, avro_writer_tell(writer));
 			exit(EXIT_FAILURE);
 		}

Modified: hadoop/avro/trunk/lang/c/tests/test_cpp.cpp
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/tests/test_cpp.cpp?rev=924892&r1=924891&r2=924892&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/tests/test_cpp.cpp (original)
+++ hadoop/avro/trunk/lang/c/tests/test_cpp.cpp Thu Mar 18 16:52:11 2010
@@ -2,6 +2,9 @@
 
 int main(int argc, char **argv)
 {
+    (void)argc;
+    (void)argv;
+
 	return 0;
 }
 



Mime
View raw message