From: David B. <dbr...@us...> - 2010-01-05 23:16:25
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 2bc7446bb8caf751f7d6900af26384f6c64cc791 (commit) from 844b5eb49d7fd4afa4f0309ce47f29d99886a2f7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2bc7446bb8caf751f7d6900af26384f6c64cc791 Author: David Brownell <dbr...@us...> Date: Tue Jan 5 14:11:03 2010 -0800 buildfix with -DNDEBUG Don't save that state unless its only user, an assertion, is compiled. Saving it broke a cygwin build. Signed-off-by: David Brownell <dbr...@us...> diff --git a/src/jtag/drivers/driver.c b/src/jtag/drivers/driver.c index c57386a..45c5d10 100644 --- a/src/jtag/drivers/driver.c +++ b/src/jtag/drivers/driver.c @@ -215,7 +215,10 @@ int interface_jtag_add_dr_scan(int in_num_fields, const struct scan_field *in_fi if (!tap->bypass) { - struct scan_field * start_field = field; /* keep initial position for assert() */ +#ifndef NDEBUG + /* remember initial position for assert() */ + struct scan_field *start_field = field; +#endif /* NDEBUG */ for (int j = 0; j < in_num_fields; j++) { ----------------------------------------------------------------------- Summary of changes: src/jtag/drivers/driver.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |