shithub: scc

Download patch

ref: e179d9ca799142833e93edc318495322a1d62058
parent: 3229d11bed9d231780b4e126b2c091c102720891
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Jul 3 19:59:04 EDT 2013

Add NDEBUG guards in a abort call

This abort call will be only called when the code is incorrect, so
it is not desirable having it in a production system.

--- a/types.c
+++ b/types.c
@@ -128,8 +128,10 @@
 		if (type == LONG)
 			return LDOUBLE;
 		break;
+#ifndef NDEBUG
 	default:
 		abort();
+#endif
 	}
 	error("two or more basic types");
 }