hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject svn commit: r938190 - in /hadoop/zookeeper/trunk: CHANGES.txt src/java/main/org/apache/jute/compiler/JRecord.java
Date Mon, 26 Apr 2010 18:54:06 GMT
Author: phunt
Date: Mon Apr 26 18:54:06 2010
New Revision: 938190

URL: http://svn.apache.org/viewvc?rev=938190&view=rev
Log:
ZOOKEEPER-738. zookeeper.jute.h fails to compile with -pedantic

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/src/java/main/org/apache/jute/compiler/JRecord.java

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=938190&r1=938189&r2=938190&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Mon Apr 26 18:54:06 2010
@@ -26,6 +26,9 @@ BUGFIXES: 
   ZOOKEEPER-746. learner outputs session id to log in dec (phunt via
   henryr)
 
+  ZOOKEEPER-738. zookeeper.jute.h fails to compile with -pedantic
+  (Jozef Hatala via phunt)
+
 IMPROVEMENTS:
   ZOOKEEPER-724. Improve junit test integration - log harness information 
   (phunt via mahadev)

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/jute/compiler/JRecord.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/jute/compiler/JRecord.java?rev=938190&r1=938189&r2=938190&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/jute/compiler/JRecord.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/jute/compiler/JRecord.java Mon Apr 26
18:54:06 2010
@@ -114,7 +114,7 @@ public class JRecord extends JCompType {
                 String struct_name = JVector.extractVectorName(jvType);
                 if (vectorStructs.get(struct_name) == null) {
                     vectorStructs.put(struct_name, struct_name);
-                    h.write("struct " + struct_name + " {\n    int32_t count;\n" + jv.getElementType().genCDecl("*data")
+ ";\n};\n");
+                    h.write("struct " + struct_name + " {\n    int32_t count;\n" + jv.getElementType().genCDecl("*data")
+ "\n};\n");
                     h.write("int serialize_" + struct_name + "(struct oarchive *out, const
char *tag, struct " + struct_name + " *v);\n");
                     h.write("int deserialize_" + struct_name + "(struct iarchive *in, const
char *tag, struct " + struct_name + " *v);\n");
                     h.write("int allocate_" + struct_name + "(struct " + struct_name + "
*v, int32_t len);\n");



Mime
View raw message