News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compiler Optimizations disabled

Started by Mo3bius, February 09, 2009, 12:24:34 AM

Previous topic - Next topic

Mo3bius

Hi,
I'm trying to use C::B for a AVR-Board. Until now I managed to set the right path to the avr-gcc file.

After that I tried to build a simple programm and it worked. But if I add this line : "#include <util/delay.h>" I get the Build message:

# warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed"

The Programm seems to work, but why do I get this warning?

Mfg Mo3bius

Jenna

This warning should go away, if you use any optimization level higher than "-O0".

The warning is from "util/delay.h" :
Quote#ifndef __OPTIMIZE__
# warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed"
#endif