[Groonga-commit] groonga/groonga [master] geo: suppress a warning

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 5日 (火) 13:42:55 JST


Kouhei Sutou	2012-06-05 13:42:55 +0900 (Tue, 05 Jun 2012)

  New Revision: 848a3391d4601dc3cc147facc90ef37dc5ea799d

  Log:
    geo: suppress a warning
    
    geo.c:1897:1: warning: control reaches end of non-void function [-Wreturn-type]

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+3 -0)
===================================================================
--- lib/geo.c    2012-06-05 13:42:17 +0900 (3fff76c)
+++ lib/geo.c    2012-06-05 13:42:55 +0900 (727ac4f)
@@ -1889,6 +1889,9 @@ geo_quadrant_type(grn_geo_point *point1, grn_geo_point *point2)
     return QUADRANT_3RD;
   } else if (QUADRANT_4TH_WITH_AXIS(point1) && QUADRANT_4TH_WITH_AXIS(point2)) {
     return QUADRANT_4TH;
+  } else {
+    /* FIXME */
+    return QUADRANT_1ST;
   }
 #undef QUADRANT_1ST_WITH_AXIS
 #undef QUADRANT_2ND_WITH_AXIS




Groonga-commit メーリングリストの案内
Back to archive index