changeset 58077:501270d701ec

(main, consider_token, C_entries): Add misc switch default targets to silence compiler.
author Kim F. Storm <storm@cua.dk>
date Tue, 09 Nov 2004 11:02:51 +0000
parents f23c519cb43f
children 5d803fae362c
files lib-src/etags.c
diffstat 1 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Tue Nov 09 11:02:35 2004 +0000
+++ b/lib-src/etags.c	Tue Nov 09 11:02:51 2004 +0000
@@ -1400,6 +1400,8 @@
           this_file = argbuffer[i].what;
           process_file (stdin, this_file, lang);
           break;
+	case at_end:
+	  break;
 	}
     }
 
@@ -2900,6 +2902,8 @@
      case tkeyseen:
        switch (toktype)
 	 {
+	 default:
+	   break;
 	 case st_none:
 	 case st_C_class:
 	 case st_C_struct:
@@ -2917,12 +2921,16 @@
      case tend:
        switch (toktype)
 	 {
+	 default:
+	   break;
 	 case st_C_class:
 	 case st_C_struct:
 	 case st_C_enum:
 	   return FALSE;
 	 }
        return TRUE;
+     default:
+       break;
      }
 
    /*
@@ -2960,6 +2968,8 @@
 	     fvdef = fvnone;
 	 }
        return FALSE;
+     default:
+       break;
      }
 
    if (structdef == skeyseen)
@@ -2983,6 +2993,8 @@
 	 case st_C_objimpl:
 	   objdef = oimplementation;
 	   return FALSE;
+	 default:
+	   break;
 	 }
        break;
      case oimplementation:
@@ -3039,6 +3051,8 @@
 	   objdef = onone;
 	 }
        return FALSE;
+     default:
+       break;
      }
 
    /* A function, variable or enum constant? */
@@ -3091,6 +3105,8 @@
 		   return FALSE;
 		 }
 	       break;
+	     default:
+	       break;
 	     }
 	  /* FALLTHRU */
 	  case fvnameseen:
@@ -3107,8 +3123,12 @@
 	  fvdef = fvnameseen;	/* function or variable */
 	  *is_func_or_var = TRUE;
 	  return TRUE;
+	default:
+	   break;
 	}
       break;
+    default:
+      break;
     }
 
   return FALSE;
@@ -3584,6 +3604,8 @@
 			  fvdef = fignore;
 			}
 		      break;
+		    default:
+		      break;
 		    }
 		  if (structdef == stagseen && !cjava)
 		    {
@@ -3594,6 +3616,8 @@
 		case dsharpseen:
 		  savetoken = token;
 		  break;
+		default:
+		  break;
 		}
 	      if (!yacc_rules || lp == newlb.buffer + 1)
 		{
@@ -3632,6 +3656,8 @@
 	      linebuffer_setlen (&token_name, token_name.len + 1);
 	      strcat (token_name.buffer, ":");
 	      break;
+	    default:
+	      break;
 	    }
 	  if (structdef == stagseen)
 	    {
@@ -3709,6 +3735,8 @@
 	      make_C_tag (TRUE); /* an Objective C method */
 	      objdef = oinbody;
 	      break;
+	    default:
+	      break;
 	    }
 	  switch (fvdef)
 	    {
@@ -3779,6 +3807,8 @@
 		  fvdef = fvnone;
 		}
 	      break;
+	    default:
+	      break;
 	    }
 	  break;
 	case '(':
@@ -3812,6 +3842,8 @@
 	    case flistseen:
 	      fvdef = finlist;
 	      break;
+	    default:
+	      break;
 	    }
 	  parlev++;
 	  break;
@@ -3837,6 +3869,8 @@
 		case finlist:
 		  fvdef = flistseen;
 		  break;
+		default:
+		  break;
 		}
 	      if (!instruct
 		  && (typdef == tend
@@ -3886,6 +3920,8 @@
 		    bracelev = -1;
 		}
 	      break;
+	    default:
+	      break;
 	    }
 	  switch (structdef)
 	    {
@@ -3899,6 +3935,8 @@
 	      structdef = snone;
 	      make_C_tag (FALSE);  /* a struct or enum */
 	      break;
+	    default:
+	      break;
 	    }
 	  bracelev++;
 	  break;