Skip to content

Commit 77e8e6f

Browse files
committed
Allow compiling with warnings as errors in Release mode
1 parent 61bc6bc commit 77e8e6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/ldd2meddly.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ typedef struct relation
106106
static int vector_size; // size of vector
107107
static int next_count; // number of partitions of the transition relation
108108
static rel_t *next; // each partition of the transition relation
109-
static int has_actions = 0;
110109

111110
#define Abort(...) { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "Abort at line %d!\n", __LINE__); exit(-1); }
112111

@@ -233,12 +232,14 @@ TASK_2(MDD, strip_actions, MDD, dd, MDD, meta)
233232
if (dd == lddmc_false) return lddmc_false;
234233
if (dd == lddmc_true) {
235234
// now meta must be end...
235+
#ifndef NDEBUG
236236
if (meta != lddmc_true) {
237237
const mddnode_t nmeta = LDD_GETNODE(meta);
238238
const uint32_t vmeta = mddnode_getvalue(nmeta);
239239
// printf("Vmeta is %d\n", (int)vmeta);
240240
assert(vmeta == (uint32_t)-1);
241241
}
242+
#endif
242243
return lddmc_true;
243244
}
244245

@@ -358,7 +359,9 @@ ldd_rel_to_meddly(const MDD dd, const MDD meta, expert_forest *F, const int leve
358359
return (int)result;
359360
}
360361

362+
#ifndef NDEBUG
361363
const mddnode_t n = LDD_GETNODE(dd);
364+
#endif
362365

363366
const mddnode_t nmeta = LDD_GETNODE(meta);
364367
const uint32_t vmeta = mddnode_getvalue(nmeta);
@@ -501,6 +504,7 @@ VOID_TASK_0(gc_end)
501504
printf("Garbage collection done\n");
502505
}
503506

507+
#if 0
504508
static void
505509
print_matrix(size_t size, MDD meta)
506510
{
@@ -527,6 +531,7 @@ print_matrix(size_t size, MDD meta)
527531
print_matrix(size-1, lddmc_follow(meta, val));
528532
}
529533
}
534+
#endif
530535

531536
void run()
532537
{

0 commit comments

Comments
 (0)