You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/10/26 21:05:34 UTC

[lucy-commits] svn commit: r1189390 - in /incubator/lucy/branches/clownfish_lemon/clownfish/src: CFCParseHeader.y CFCPerlClass.c CFCPerlMethod.c CFCPerlSub.c

Author: marvin
Date: Wed Oct 26 19:05:34 2011
New Revision: 1189390

URL: http://svn.apache.org/viewvc?rev=1189390&view=rev
Log:
Address some minor compiler warnings.

Modified:
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParseHeader.y
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlClass.c
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlMethod.c
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlSub.c

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParseHeader.y
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParseHeader.y?rev=1189390&r1=1189389&r2=1189390&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParseHeader.y (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParseHeader.y Wed Oct 26 19:05:34 2011
@@ -124,6 +124,7 @@ S_new_sub(CFCParser *state, CFCDocuComme
 static CFCType*
 S_new_type(CFCParser *state, int flags, char *type_name,
            char *asterisk_postfix, char *array_postfix) {
+    (void)state; /* unused */
     CFCType *type = NULL;
     size_t type_name_len = strlen(type_name);
     int indirection = asterisk_postfix ? strlen(asterisk_postfix) : 0;

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlClass.c
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlClass.c?rev=1189390&r1=1189389&r2=1189390&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlClass.c (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlClass.c Wed Oct 26 19:05:34 2011
@@ -109,6 +109,8 @@ S_global_replace(const char *string, con
 
 char*
 CFCPerlClass_perlify_doc_text(CFCPerlClass *self, const char *source) {
+    (void)self; // unused
+
     // Remove double-equals hack needed to fool perldoc, PAUSE, etc. :P
     // char *copy = S_global_replace(source, "==", "=");
     char *copy = CFCUtil_strdup(source);

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlMethod.c
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlMethod.c?rev=1189390&r1=1189389&r2=1189390&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlMethod.c (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlMethod.c Wed Oct 26 19:05:34 2011
@@ -138,6 +138,7 @@ S_xsub_body(CFCPerlMethod *self) {
 static char*
 S_self_assign_statement(CFCPerlMethod *self, CFCType *type,
                         const char *method_name) {
+    (void)self; // unused
     const char *type_c = CFCType_to_c(type);
     if (!CFCType_is_object(type)) {
         CFCUtil_die("Not an object type: %s", type_c);
@@ -165,7 +166,6 @@ static char*
 S_xsub_def_labeled_params(CFCPerlMethod *self) {
     const char *c_name = self->sub.c_name;
     CFCParamList *param_list = self->sub.param_list;
-    const char **arg_inits   = CFCParamList_get_initial_values(param_list);
     CFCVariable **arg_vars   = CFCParamList_get_variables(param_list);
     CFCVariable *self_var    = arg_vars[0];
     CFCType     *self_type   = CFCVariable_get_type(self_var);

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlSub.c
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlSub.c?rev=1189390&r1=1189389&r2=1189390&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlSub.c (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCPerlSub.c Wed Oct 26 19:05:34 2011
@@ -203,6 +203,7 @@ S_allot_params_arg(CFCType *type, const 
     }
 
     CFCUtil_die("Missing typemap for %s", type_c_string);
+    return NULL; // unreachable
 }
 
 char*