summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/debug/ltrace.in5
-rw-r--r--patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch42
2 files changed, 47 insertions, 0 deletions
diff --git a/config/debug/ltrace.in b/config/debug/ltrace.in
index 6b27121..aa5c058 100644
--- a/config/debug/ltrace.in
+++ b/config/debug/ltrace.in
@@ -15,6 +15,10 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
+config LTRACE_V_0_7_3
+ bool
+ prompt "0.7.3"
+
config LTRACE_V_0_5_3
bool
prompt "0.5.3"
@@ -30,6 +34,7 @@ config LTRACE_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
+ default "0.7.3" if LTRACE_V_0_7_3
default "0.5.3" if LTRACE_V_0_5_3
default "0.5.2" if LTRACE_V_0_5_2
diff --git a/patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch b/patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch
new file mode 100644
index 0000000..64691ce
--- /dev/null
+++ b/patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch
@@ -0,0 +1,42 @@
+From a77b267abb870c935f9b4187ca31409fa5eb9dcb Mon Sep 17 00:00:00 2001
+From: Peter Wu <lekensteyn@gmail.com>
+Date: Thu, 26 Sep 2013 00:55:55 +0200
+Subject: [PATCH] Fix compile warning about unused typedef
+
+Switch assertion to style as used by the Linux kernel (BUILD_BUG_ON)
+
+Signed-off-by: Peter Wu <lekensteyn@gmail.com>
+---
+ lens_default.c | 2 +-
+ value.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lens_default.c b/lens_default.c
+index e0c0566..84b74ea 100644
+--- a/lens_default.c
++++ b/lens_default.c
+@@ -345,7 +345,7 @@ format_array(FILE *stream, struct value *value, struct value_dict *arguments,
+ {
+ /* We need "long" to be long enough to cover the whole address
+ * space. */
+- typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))];
++ (void)sizeof(char[1 - 2*(sizeof(long) < sizeof(void *))]);
+ long l;
+ if (expr_eval_word(length, value, arguments, &l) < 0)
+ return -1;
+diff --git a/value.c b/value.c
+index d18db17..8caf98c 100644
+--- a/value.c
++++ b/value.c
+@@ -284,7 +284,7 @@ value_init_deref(struct value *ret_val, struct value *valp)
+
+ /* We need "long" to be long enough to hold platform
+ * pointers. */
+- typedef char assert__long_enough_long[-(sizeof(l) < sizeof(void *))];
++ (void)sizeof(char[1 - 2*(sizeof(l) < sizeof(void *))]);
+
+ value_common_init(ret_val, valp->inferior, valp,
+ valp->type->u.ptr_info.info, 0);
+--
+1.8.5.2
+