pivot-table: Avoid making PIVOT_N_AXES an enum member.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 28 Aug 2022 21:21:02 +0000 (14:21 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 28 Aug 2022 21:22:19 +0000 (14:22 -0700)
Otherwise the compiler will complain about it not appearing in a switch.

src/output/pivot-table.h

index 88edb62031c5227b304bb62a761704d25a03b47c..e374596184889f107ba2ecdfef60f44b3be671c8 100644 (file)
@@ -177,9 +177,8 @@ enum pivot_axis_type
   {
     PIVOT_AXIS_LAYER,
     PIVOT_AXIS_ROW,
-    PIVOT_AXIS_COLUMN,
-
-    PIVOT_N_AXES
+    PIVOT_AXIS_COLUMN
+#define PIVOT_N_AXES 3
   };
 
 const char *pivot_axis_type_to_string (enum pivot_axis_type);