[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "slice-plugins" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Apr 15 10:44:32 CDT 2011


branch "slice-plugins" has been updated
       via  2ec4539319ce0fbb3ad94e50932a9599401d08a9 (commit)
      from  f4e797153083a8c7ae3acc9f42b2fbfcdde0f5e1 (commit)

Summary of changes:
 cpp/src/Slice/Parser.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 2ec4539319ce0fbb3ad94e50932a9599401d08a9
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Apr 15 10:43:45 2011 -0500

    Allow plugins to add unnamed parameters to generated operations (so that the
    resulting code won't generate an 'unused parameter' warning if the operation
    has no code in its body).

diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 6b10e04..e6624d6 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -2119,6 +2119,11 @@ Slice::Container::Container(const UnitPtr& unit) :
 void
 Slice::Container::checkIdentifier(const string& name) const
 {
+    if(name.size() == 0)
+    {
+        return;
+    }
+
     //
     // Weed out identifiers with reserved suffixes.
     //

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/ice.git



More information about the asterisk-scf-commits mailing list