summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2014-03-01 12:13:02 -0800
committerAliaksey Kandratsenka <alk@tut.by>2014-04-01 22:06:22 -0700
commitd77317247e1c8de1ea4e0419318b26f636e64431 (patch)
tree33948d8b5a1bcd3f3382bbed20d618a45a60432e
parente7297f0c14b0c09ec52707ed7477c7aee43a1882 (diff)
downloadgperftools-d77317247e1c8de1ea4e0419318b26f636e64431.tar.gz
issue deprecation warning on use of google/ headers
-rw-r--r--src/google/heap-checker.h3
-rw-r--r--src/google/heap-profiler.h3
-rw-r--r--src/google/malloc_extension.h3
-rw-r--r--src/google/malloc_extension_c.h3
-rw-r--r--src/google/malloc_hook.h3
-rw-r--r--src/google/malloc_hook_c.h3
-rw-r--r--src/google/profiler.h3
-rw-r--r--src/google/stacktrace.h3
-rw-r--r--src/google/tcmalloc.h3
9 files changed, 27 insertions, 0 deletions
diff --git a/src/google/heap-checker.h b/src/google/heap-checker.h
index 8aa5ea4..7cacf1f 100644
--- a/src/google/heap-checker.h
+++ b/src/google/heap-checker.h
@@ -30,4 +30,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/heap-checker.h is deprecated. Use gperftools/heap-checker.h instead"
+#endif
#include <gperftools/heap-checker.h>
diff --git a/src/google/heap-profiler.h b/src/google/heap-profiler.h
index be43959..3fc26cf 100644
--- a/src/google/heap-profiler.h
+++ b/src/google/heap-profiler.h
@@ -31,4 +31,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/heap-profiler.h is deprecated. Use gperftools/heap-profiler.h instead"
+#endif
#include <gperftools/heap-profiler.h>
diff --git a/src/google/malloc_extension.h b/src/google/malloc_extension.h
index 55150e5..7cacc34 100644
--- a/src/google/malloc_extension.h
+++ b/src/google/malloc_extension.h
@@ -30,4 +30,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/malloc_extension.h is deprecated. Use gperftools/malloc_extension.h instead"
+#endif
#include <gperftools/malloc_extension.h>
diff --git a/src/google/malloc_extension_c.h b/src/google/malloc_extension_c.h
index 87d727b..f34a835 100644
--- a/src/google/malloc_extension_c.h
+++ b/src/google/malloc_extension_c.h
@@ -31,4 +31,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/malloc_extension_c.h is deprecated. Use gperftools/malloc_extension_c.h instead"
+#endif
#include <gperftools/malloc_extension_c.h>
diff --git a/src/google/malloc_hook.h b/src/google/malloc_hook.h
index e5b8e7c..371aba4 100644
--- a/src/google/malloc_hook.h
+++ b/src/google/malloc_hook.h
@@ -30,4 +30,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/malloc_hook.h is deprecated. Use gperftools/malloc_hook.h instead"
+#endif
#include <gperftools/malloc_hook.h>
diff --git a/src/google/malloc_hook_c.h b/src/google/malloc_hook_c.h
index e3ac0a4..f882c16 100644
--- a/src/google/malloc_hook_c.h
+++ b/src/google/malloc_hook_c.h
@@ -31,4 +31,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/malloc_hook_c.h is deprecated. Use gperftools/malloc_hook_c.h instead"
+#endif
#include <gperftools/malloc_hook_c.h>
diff --git a/src/google/profiler.h b/src/google/profiler.h
index 67a89c1..3674c9e 100644
--- a/src/google/profiler.h
+++ b/src/google/profiler.h
@@ -31,4 +31,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/profiler.h is deprecated. Use gperftools/profiler.h instead"
+#endif
#include <gperftools/profiler.h>
diff --git a/src/google/stacktrace.h b/src/google/stacktrace.h
index eb761ca..53d2947 100644
--- a/src/google/stacktrace.h
+++ b/src/google/stacktrace.h
@@ -30,4 +30,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/stacktrace.h is deprecated. Use gperftools/stacktrace.h instead"
+#endif
#include <gperftools/stacktrace.h>
diff --git a/src/google/tcmalloc.h b/src/google/tcmalloc.h
index c7db631..a2db70e 100644
--- a/src/google/tcmalloc.h
+++ b/src/google/tcmalloc.h
@@ -31,4 +31,7 @@
/* The code has moved to gperftools/. Use that include-directory for
* new code.
*/
+#ifdef __GNUC__
+#warning "google/tcmalloc.h is deprecated. Use gperftools/tcmalloc.h instead"
+#endif
#include <gperftools/tcmalloc.h>