summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main_complete.c4
-rw-r--r--main_simple.c6
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();