summaryrefslogtreecommitdiffstats
path: root/generic/tkInt.h
diff options
context:
space:
mode:
authordas <das@noemail.net>2009-08-25 23:49:45 (GMT)
committerdas <das@noemail.net>2009-08-25 23:49:45 (GMT)
commitedaf5fc3fb0af93d044e678e7bbc154d5bbf3c1b (patch)
tree651188ff6506ecb3c9736e5ef125419793bbc186 /generic/tkInt.h
parent537f71113d029a2b4ee0cb0a4ffa35531d0b8592 (diff)
downloadtk-edaf5fc3fb0af93d044e678e7bbc154d5bbf3c1b.zip
tk-edaf5fc3fb0af93d044e678e7bbc154d5bbf3c1b.tar.gz
tk-edaf5fc3fb0af93d044e678e7bbc154d5bbf3c1b.tar.bz2
guard clang analyzer Tcl_Panic annotation with #ifndef USE_TCL_STUBS
FossilOrigin-Name: 3335f5d2ada1e9bc717b3353f523a1b966137197
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r--generic/tkInt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index d43278a..2cd1494 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: $Id: tkInt.h,v 1.108 2009/08/24 03:18:23 das Exp $
+ * RCS: $Id: tkInt.h,v 1.109 2009/08/25 23:49:46 das Exp $
*/
#ifndef _TKINT
@@ -989,7 +989,10 @@ MODULE_SCOPE Tcl_HashTable tkPredefBitmapTable;
#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