From: Freddie Chopin Date: Fri, 3 Jun 2011 20:13:35 +0000 (+0200) Subject: Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes X-Git-Tag: v0.5.0-rc1~42 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=f499bab6984c815b8d7aea49bafcc85ac4beb522 Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes --- diff --git a/src/target/arm11_dbgtap.c b/src/target/arm11_dbgtap.c index 4e90933d7c..5c671cc5f8 100644 --- a/src/target/arm11_dbgtap.c +++ b/src/target/arm11_dbgtap.c @@ -1045,10 +1045,6 @@ static inline struct arm11_common *dpm_to_arm11(struct arm_dpm *dpm) static int arm11_dpm_prepare(struct arm_dpm *dpm) { - struct arm11_common *arm11 = dpm_to_arm11(dpm); - - arm11 = container_of(dpm->arm, struct arm11_common, arm); - return arm11_run_instr_data_prepare(dpm_to_arm11(dpm)); }