[Groonga-commit] groonga/groonga at deeb5ca [master] ts: add workaround to fix build error with MSVC

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Nov 21 16:47:30 JST 2015


Kouhei Sutou	2015-11-21 16:47:30 +0900 (Sat, 21 Nov 2015)

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

  Message:
    ts: add workaround to fix build error with MSVC
    
    MSVC doesn't support empty struct.
    
    https://ci.appveyor.com/project/groonga/groonga/build/2521/job/ni8sqlf6etpooumy#L982
    
        c:\projects\groonga\lib\ts\ts_sorter.h(31): error C2016: C requires that a struct or union has at least one member [C:\projects\groonga\lib\libgroonga.vcxproj]

  Modified files:
    lib/ts/ts_plan.h
    lib/ts/ts_sorter.h

  Modified: lib/ts/ts_plan.h (+1 -0)
===================================================================
--- lib/ts/ts_plan.h    2015-11-21 15:09:04 +0900 (838f1f7)
+++ lib/ts/ts_plan.h    2015-11-21 16:47:30 +0900 (b943ddc)
@@ -31,6 +31,7 @@ extern "C" {
 #endif
 
 typedef struct {
+  int REMOVE_ME;
 } grn_ts_plan_node;
 
 typedef struct {

  Modified: lib/ts/ts_sorter.h (+1 -0)
===================================================================
--- lib/ts/ts_sorter.h    2015-11-21 15:09:04 +0900 (001d823)
+++ lib/ts/ts_sorter.h    2015-11-21 16:47:30 +0900 (a65564a)
@@ -28,6 +28,7 @@ extern "C" {
 #endif
 
 typedef struct {
+  int REMOVE_ME;
 } grn_ts_sorter_node;
 
 typedef struct {
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index