summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-11-10 16:57:15 +0100
committerSergei Golubchik <serg@mariadb.org>2015-11-16 07:55:55 +0100
commit29dd634a4c0b9c3579cf9d318ed64d748d848b1d (patch)
tree83968b769967aba2ca8236c9b2434f00b34674c6 /config.h.cmake
parent8f60656fd58610a7ed0b65321d229b44ab618f9a (diff)
downloadmariadb-git-29dd634a4c0b9c3579cf9d318ed64d748d848b1d.tar.gz
dbug: correct trace for DBUG_RETURN(func()); -- gcc only
when func1 calls func2 from DBUG_RETURN, dbug shows the trace as | > func1 | < func1 | > func2 | < func2 because DBUG_LEAVE happens before func2(). Change that to invoke DBUG_LEAVE when the local variable goes out of scope. This uses gcc specific __attribute__((cleanup)).
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index c0eaad29cb1..96165c16aa0 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -465,7 +465,7 @@
#cmakedefine HAVE_WEAK_SYMBOL 1
#cmakedefine HAVE_ABI_CXA_DEMANGLE 1
-
+#cmakedefine HAVE_ATTRIBUTE_CLEANUP 1
#cmakedefine HAVE_POSIX_SIGNALS 1
#cmakedefine HAVE_BSD_SIGNALS 1