summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-03-22 15:58:01 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2017-10-21 15:54:33 +0100
commit6f33e48ca392ecadf664d0d8fc6cccd904a935cc (patch)
treebfaa0a24ebbb494dc271e116237ef2a68f3de709
parent3356906904487e5931e38ba21e100bdec113e783 (diff)
downloadnetsurf-6f33e48ca392ecadf664d0d8fc6cccd904a935cc.tar.gz
netsurf-6f33e48ca392ecadf664d0d8fc6cccd904a935cc.tar.bz2
Duktape: Prevent clang static analysis.
Restore 336326af3aab93f31474fa6de28782457ae4a1c0 for 2.2.0 import.
-rw-r--r--content/handlers/javascript/duktape/duktape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/handlers/javascript/duktape/duktape.c b/content/handlers/javascript/duktape/duktape.c
index 3171c6e23..fcbb95da0 100644
--- a/content/handlers/javascript/duktape/duktape.c
+++ b/content/handlers/javascript/duktape/duktape.c
@@ -1,3 +1,5 @@
+/* Omit from static analysis. */
+#ifndef __clang_analyzer__
/*
* Single source autogenerated distributable for Duktape 2.2.0.
*
@@ -94982,3 +94984,4 @@ DUK_INTERNAL duk_double_t duk_util_tinyrandom_get_double(duk_hthread *thr) {
#undef DUK__RANDOM_XOROSHIRO128PLUS
#undef DUK__RND_BIT
#undef DUK__UPDATE_RND
+#endif