Browse Source

gcc is forgiving of stray ;

Scott Lahteine 5 years ago
parent
commit
914605c89c
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/src/module/motion.h

+ 1
- 2
Marlin/src/module/motion.h View File

@@ -112,8 +112,7 @@ FORCE_INLINE signed char pgm_read_any(const signed char *p) { return pgm_read_by
112 112
 
113 113
 #define XYZ_DEFS(T, NAME, OPT) \
114 114
   extern const XYZval<T> NAME##_P; \
115
-  FORCE_INLINE T NAME(AxisEnum axis) { return pgm_read_any(&NAME##_P[axis]); } \
116
-  typedef void __void_##OPT##__ /* for semicolon */
115
+  FORCE_INLINE T NAME(AxisEnum axis) { return pgm_read_any(&NAME##_P[axis]); }
117 116
 
118 117
 XYZ_DEFS(float, base_min_pos,   MIN_POS);
119 118
 XYZ_DEFS(float, base_max_pos,   MAX_POS);

Loading…
Cancel
Save