summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/dng_assertions.h2
-rw-r--r--source/dng_mosaic_info.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/dng_assertions.h b/source/dng_assertions.h
index dc998fa..0377350 100644
--- a/source/dng_assertions.h
+++ b/source/dng_assertions.h
@@ -59,7 +59,7 @@ void dng_show_message_f (const char *fmt, ...);
/// \param x Predicate which must be true.
/// \param y String to display if x is not true.
-#define DNG_ASSERT(x,y)
+#define DNG_ASSERT(x,y) do { } while(false)
#endif
#endif
diff --git a/source/dng_mosaic_info.cpp b/source/dng_mosaic_info.cpp
index 0a51d9b..dde2e31 100644
--- a/source/dng_mosaic_info.cpp
+++ b/source/dng_mosaic_info.cpp
@@ -104,7 +104,7 @@ void dng_bilinear_kernel::Add (const dng_point &delta,
// Add element to list.
- DNG_ASSERT (fCount < kMaxCount, "Too many kernel entries")
+ DNG_ASSERT (fCount < kMaxCount, "Too many kernel entries");
fDelta [fCount] = delta;
fWeight32 [fCount] = weight;