Forum Discussion
Altera_Forum
Honored Contributor
16 years agochecksum hardware accelrator design example (How can I modify it for DE2 Board)
I want to use this example with DE2 board but DE2 board did not have DDR SDRAM and this design is using DDR SDRAM can anybody guide me how i can get rid of this DDR SDRAM and use instead SDRAM or...
Altera_Forum
Honored Contributor
16 years agoTypically neither '& 0xff' nor '% 256' will remove the warning (about assigning to a narrower integral type), an explict '(unsigned char)' cast will, but the compiler is likely to generate an (or maybe another) unnecessary mask with 255.
Although I usually compile with '-Wall -Wshadow -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wwrite-strings -Werror' I disable all the warnings about integer convertions. I really don't like casts!