On Wed, Jun 29, 2011 at 12:44 AM, Øyvind Harboe <[email protected]> wrote: > This is disturbing. Why switch to global variables? > > +static uint32_t data_read_dummy; > static int jtag_data_write(struct target * target, uint32_t instr,int > num_bits, uint32_t * data_read){ > int retval; > - uint32_t data_read_dummy; >
i did this to have mem to dump the data read at the time the queue is flushed i do not care about this data, but i need somewhere to dump it (otherwise it'll segfault). multiple instances of the target would not cause trouble, since i do not care about this data, so it could be overwritten and it would no break anything. i can work out a better solution if it is important. > Seperate patch? Does this have anything to do with fixing warnings? > > - counter = FLUSH_COUNT_FLASH; > + counter = FLUSH_COUNT_READ_WRITE; > nothing to do with warnings, but it doesn't really affect anything, since both constants are defined to the same value (i'm was experimenting with them some time ago) >> do you have any clue about what i'm doing wrong? > > What warnings you get depend on what compiler you're using. > > try > > CFLAGS="-O3 -g" configure xxxxxx > i do not get the warnings. i've been reading a bit, and those warnings should only appear if -Wcast-align is set. i tried ./configure --enable-mantainer-mode --enable-ft2232-libftdi CFLAGS="-O3 -g -Wcast-align" but still no warnings... what flags are you using? > > -- > Øyvind Harboe - Can Zylin Consulting help on your project? > US toll free 1-866-980-3434 / International +47 51 87 40 27 > http://www.zylin.com/ > thanks -- Rodrigo. _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
