summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordas <das@noemail.net>2009-08-25 23:49:38 (GMT)
committerdas <das@noemail.net>2009-08-25 23:49:38 (GMT)
commitdd191d0d8511e268d4321e834e78bcc605cebeb7 (patch)
tree071f889c1285e1875bc7d04e923c275b459394ea /generic/tclInt.h
parentb351bbd60b79e0917771d8ae0cd1f6dd9428df52 (diff)
downloadtcl-dd191d0d8511e268d4321e834e78bcc605cebeb7.zip
tcl-dd191d0d8511e268d4321e834e78bcc605cebeb7.tar.gz
tcl-dd191d0d8511e268d4321e834e78bcc605cebeb7.tar.bz2
guard clang analyzer Tcl_Panic annotation with #ifndef USE_TCL_STUBS
FossilOrigin-Name: ec1134fc9d8b5eaa71f12de9506eeb9d49d69192
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 6443c6f..d19442d 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.437 2009/08/25 21:03:25 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.438 2009/08/25 23:49:39 das Exp $
*/
#ifndef _TCLINT
@@ -4296,7 +4296,10 @@ MODULE_SCOPE void TclBNInitBignumFromWideUInt(mp_int *bignum,
#if defined(PURIFY) && defined(__clang__) && !defined(CLANG_ASSERT)
#include <assert.h>
#define CLANG_ASSERT(x) assert(x)
-EXTERN void Tcl_Panic(const char * format, ...) __attribute__((analyzer_noreturn));
+#ifndef USE_TCL_STUBS
+EXTERN void Tcl_Panic(const char * format, ...)
+ __attribute__((analyzer_noreturn));
+#endif
#elif !defined(CLANG_ASSERT)
#define CLANG_ASSERT(x)
#endif