[ros-gencpp] 01/03: Imported Upstream version 0.5.4
Jochen Sprickerhof
jspricke-guest at moszumanska.debian.org
Sat Jun 18 09:22:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
jspricke-guest pushed a commit to annotated tag debian/0.5.4-1
in repository ros-gencpp.
commit 825c500a694bc750929c0652703a6cd00b9c221b
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date: Sat Jun 18 11:16:38 2016 +0200
Imported Upstream version 0.5.4
---
CHANGELOG.rst | 4 ++++
package.xml | 2 +-
scripts/msg.h.template | 3 +++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 8257d6a..8652164 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
Changelog for package gencpp
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+0.5.4 (2016-03-14)
+------------------
+* fix unused parameter warning (`#24 <https://github.com/ros/gencpp/issues/24>`_)
+
0.5.3 (2014-12-22)
------------------
* remove copyright header from generated code (`#20 <https://github.com/ros/gencpp/issues/20>`_)
diff --git a/package.xml b/package.xml
index 898fce3..6c3c692 100644
--- a/package.xml
+++ b/package.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>gencpp</name>
- <version>0.5.3</version>
+ <version>0.5.4</version>
<description>C++ ROS message and service generators.</description>
<maintainer email="dthomas at osrfoundation.org">Dirk Thomas</maintainer>
<license>BSD</license>
diff --git a/scripts/msg.h.template b/scripts/msg.h.template
index 03c0ed3..824a13c 100644
--- a/scripts/msg.h.template
+++ b/scripts/msg.h.template
@@ -70,6 +70,9 @@ struct @(spec.short_name)_
@('\n '.join(gencpp.generate_initializer_list(spec, alloc_name != '' )))@
{
@# Fixed length arrays
+@[if alloc_name != '' and not [f for f in spec.parsed_fields() if f.is_array and f.array_len is not None and f.base_type == 'string']]@
+ (void)_alloc;
+@[end if]@
@('\n '.join(gencpp.generate_fixed_length_assigns(spec, alloc_name != '', '%s::'%(spec.package))))@
}
@[end for]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/ros-gencpp.git
More information about the debian-science-commits
mailing list