Skip to content
Snippets Groups Projects
Commit c28e1657 authored by Anthony Mallet's avatar Anthony Mallet
Browse files

[wip/genom3-ros] Remove an unused variable in the generated code

Bump PKGREVISION
parent e7fba872
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
# Created: Anthony Mallet on Fri, 19 Oct 2012
#
PKGREVISION= 1
PKGREVISION= 2
DISTNAME= genom3-ros-1.10
CATEGORIES= architecture
MASTER_SITES= ${MASTER_SITE_OPENROBOTS:=genom3-ros/}
......
......@@ -2,3 +2,4 @@ SHA1 (genom3-ros-1.10.tar.gz) = 413014351c46f50d57b4c859d4ff0c3300d1c404
RMD160 (genom3-ros-1.10.tar.gz) = 0cc9eaf2bfb449d9be9e7657a202af65160c857d
Size (genom3-ros-1.10.tar.gz) = 390003 bytes
SHA1 (patch-aa) = 85cae81cae4dcda2f42c971561498522a3dba456
SHA1 (patch-ab) = 5caa9bc9ae50408905289c3317fe99c1a7e1cd84
diff --git common/serialize.h common/serialize.h
index 3fb95f7..8ab3a6a 100644
--- common/serialize.h
+++ common/serialize.h
@@ -143,7 +143,7 @@ namespace ros {
<' }'>
<' }'>
<' sequence {'>
- uint32_t i, l;
+ uint32_t l;
stream.next(l);
<' if {[catch {$type length} l]} {'>
if (genom_sequence_reserve(&a, l)) assert(!"out of memory");
@@ -156,6 +156,7 @@ namespace ros {
memcpy(a._buffer, stream.advance(a._length * sizeof(*a._buffer)),
a._length * sizeof(*a._buffer));
<' } else {'>
+ uint32_t i;
<"[[$type type] declarator x]">;
for(i = 0; i < a._length; i++) stream.next(a._buffer[i]);
for(; i < l; i++) stream.next(x);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment