Revert "Workaround 'struct member Generic::null never used' cppcheck style warning"
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 07:30:07 +0000 (10:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 07:32:03 +0000 (10:32 +0300)
(after commit cbc51ee)

This reverts commit 3fea666ef34f90b2c04095274c449b0b7978d756.

The reverted commit is not needed anymore because commit cbc51ee
adds function.null value check.

cord/cordbscs.c

index 321ca94..3eb63f4 100644 (file)
@@ -306,7 +306,6 @@ CORD CORD_from_fn(CORD_fn fn, void * client_data, size_t len)
 
         result = GC_NEW(struct Function);
         if (result == 0) OUT_OF_MEMORY;
-        if (result->null != 0) ABORT("error"); /* make 'null' field used */
         result->header = FN_HDR;
         /* depth is already 0 */
         result->len = len;