Browse Source

Merge pull request #540 from svaarala/fix-heaphdr-link-assert-warning

Avoid compile warning from linked list asserts
pull/542/head
Sami Vaarala 9 years ago
parent
commit
692bed47bf
  1. 2
      src/duk_heaphdr.h

2
src/duk_heaphdr.h

@ -238,7 +238,7 @@ struct duk_heaphdr_string {
/* Check that prev/next links are consistent: if e.g. h->prev is != NULL,
* h->prev->next should point back to h.
*/
#if defined(DUK_USE_DOUBLE_LINKED_HEAP)
#if defined(DUK_USE_DOUBLE_LINKED_HEAP) && defined(DUK_USE_ASSERTIONS)
#define DUK_ASSERT_HEAPHDR_LINKS(heap,h) do { \
if ((h) != NULL) { \
duk_heaphdr *h__prev, *h__next; \

Loading…
Cancel
Save