summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-03-22 15:58:01 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2017-03-22 15:58:27 +0000
commit327719de930faae543945d5a5a6856ccf8477e8d (patch)
tree1fc97abca50120f20912577b3352f0b320aab513
parent54e7f9a4dc1d58092e97a991c8b9293c13ef2cce (diff)
downloadnetsurf-tlsa/duktape2.tar.gz
Duktape: Prevent clang static analysis.tlsa/duktape2
Restore 336326af3aab93f31474fa6de28782457ae4a1c0 for 2.0.2 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 a3457a83b..4e5662188 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.0.2.
*
@@ -91380,3 +91382,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