summaryrefslogtreecommitdiff
path: root/qpid/cpp/common/framing/generated/stylesheets/cpp.xsl
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-10-11 15:50:15 +0000
committerAlan Conway <aconway@apache.org>2006-10-11 15:50:15 +0000
commitac3335857e3b30b99240c2a7638c8aed31d3e78d (patch)
tree144465ed3ea20dab341a972377de9c0451b71113 /qpid/cpp/common/framing/generated/stylesheets/cpp.xsl
parenta3d3d2ccc0ccb5d4b857be93c4774ac1bddd0aeb (diff)
downloadqpid-python-ac3335857e3b30b99240c2a7638c8aed31d3e78d.tar.gz
Turned up gcc warnings, fixed warnings in code, enabled -Werror.
Note: #include "qpid_test_plugin.h" instead of <cppunit/TestPlugin.h> Works around warning from a cppunit macro. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@462834 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/common/framing/generated/stylesheets/cpp.xsl')
-rw-r--r--qpid/cpp/common/framing/generated/stylesheets/cpp.xsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/qpid/cpp/common/framing/generated/stylesheets/cpp.xsl b/qpid/cpp/common/framing/generated/stylesheets/cpp.xsl
index ae66f65745..f9e5ba4141 100644
--- a/qpid/cpp/common/framing/generated/stylesheets/cpp.xsl
+++ b/qpid/cpp/common/framing/generated/stylesheets/cpp.xsl
@@ -122,7 +122,7 @@ public:
}
</xsl:if>
- inline void encodeContent(Buffer&amp; buffer) const
+ inline void encodeContent(Buffer&amp; <xsl:if test="$f/field">buffer</xsl:if>) const
{
<xsl:if test="$f/field[@type='bit']">
u_int8_t flags = 0;
@@ -140,11 +140,8 @@ public:
</xsl:for-each>
}
- inline void decodeContent(Buffer&amp; buffer)
+ inline void decodeContent(Buffer&amp; <xsl:if test="$f/field">buffer</xsl:if>)
{
- <xsl:if test="$f/field[@type='bit']">
- u_int8_t maxbit = <xsl:value-of select="$f/@bit-field-count"/>;
- </xsl:if>
<xsl:for-each select="$f/field">
<xsl:choose>
<xsl:when test="@type = 'bit' and @boolean-index = 1">