From e1e5b5fd7fc277a355a90ae0840965afdba4b16a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 19 Feb 2014 10:59:35 +0100 Subject: Add some more args and revert division by zero. --- main_complete.c | 4 ++-- main_simple.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/main_complete.c b/main_complete.c index a79dbc5..a649078 100644 --- a/main_complete.c +++ b/main_complete.c @@ -63,8 +63,8 @@ int main(int argc, char *argv[]) INFO(example, "We are up and running"); DEBUG(example, "Or are we %d?", 42); - int a = 0; - DEBUG(foo, "Or are we %d?", 1/a); + + DEBUG(foo, "Or are we %d?", 42); hug_close(); diff --git a/main_simple.c b/main_simple.c index 07b577d..60d57ac 100644 --- a/main_simple.c +++ b/main_simple.c @@ -57,9 +57,11 @@ int main(int argc, char *argv[]) INFO(example, "We are up and running"); - DEBUG(example, "Or are we %d?", 42); + DEBUG(example, "Or are we %d %s?", 42, "hello"); - DEBUG(foo, "Or are we %d?", 42); + const char bar[] = "bar"; + (void)bar; // Ignore if compiled with hugin disabled. + DEBUG(foo, "Or are we %d %s?", 42, bar); hug_close(); -- cgit v1.2.3