Modify pop_ifstate to use a temp var.
@@ -1947,7 +1947,8 @@ static ifstate_t new_ifstate (int skip_p, int true_p, int else_p, pos_t if_pos)
static void pop_ifstate (c2m_ctx_t c2m_ctx) {
pre_ctx_t pre_ctx = c2m_ctx->pre_ctx;
- free (VARR_POP (ifstate_t, ifs));
+ ifstate_t ifstate = VARR_POP (ifstate_t, ifs);
+ free (ifstate);
}
static void pre_init (c2m_ctx_t c2m_ctx) {
@@ -6137,7 +6138,7 @@ static void def_symbol (c2m_ctx_t c2m_ctx, enum symbol_mode mode, node_t id, nod
if (linkage == N_IGNORE) {
if (!decl_spec.typedef_p || !tab_decl_spec.typedef_p
|| !type_eq_p (decl_spec.type, tab_decl_spec.type))
-#ifdef __APPLE__
+#if defined(__APPLE__)
/* a hack to use our definition instead of macosx for non-GNU compiler */
if (strcmp (id->u.s.s, "__darwin_va_list") != 0)
#endif
