summaryrefslogtreecommitdiff
path: root/source/dng_date_time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/dng_date_time.cpp')
-rw-r--r--source/dng_date_time.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/dng_date_time.cpp b/source/dng_date_time.cpp
index 53a911a..e7175b8 100644
--- a/source/dng_date_time.cpp
+++ b/source/dng_date_time.cpp
@@ -103,6 +103,11 @@ void dng_date_time::Clear ()
/*****************************************************************************/
+#if defined(__clang__) && defined(__has_attribute)
+#if __has_attribute(no_sanitize)
+__attribute__((no_sanitize("unsigned-integer-overflow")))
+#endif
+#endif
static uint32 DateTimeParseU32 (const char *&s)
{