[Groonga-commit] groonga/groonga at bf96e77 [master] Add missing fallthru comment to suppress compiler warnings

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Aug 24 11:59:10 JST 2017


Kouhei Sutou	2017-08-24 11:59:10 +0900 (Thu, 24 Aug 2017)

  New Revision: bf96e77d055fd9c7643237930d134a3091d00617
  https://github.com/groonga/groonga/commit/bf96e77d055fd9c7643237930d134a3091d00617

  Message:
    Add missing fallthru comment to suppress compiler warnings

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+4 -0)
===================================================================
--- lib/proc.c    2017-08-24 11:58:01 +0900 (4b0307553)
+++ lib/proc.c    2017-08-24 11:59:10 +0900 (7927456f6)
@@ -1398,21 +1398,25 @@ number_safe_cast(grn_ctx *ctx, grn_obj *src, grn_obj *dest, grn_id type)
       GRN_UINT8_SET(ctx, dest, 0);
       return GRN_TRUE;
     }
+    /* fallthru */
   case GRN_DB_UINT16 :
     if (is_negative_value(src)) {
       GRN_UINT16_SET(ctx, dest, 0);
       return GRN_TRUE;
     }
+    /* fallthru */
   case GRN_DB_UINT32 :
     if (is_negative_value(src)) {
       GRN_UINT32_SET(ctx, dest, 0);
       return GRN_TRUE;
     }
+    /* fallthru */
   case GRN_DB_UINT64 :
     if (is_negative_value(src)) {
       GRN_UINT64_SET(ctx, dest, 0);
       return GRN_TRUE;
     }
+    /* fallthru */
   default :
     return grn_obj_cast(ctx, src, dest, GRN_FALSE) == GRN_SUCCESS;
   }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index