avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Bug35013 - Incomplete check for pm() annotation


From: Bob Paddock
Subject: Re: [avr-gcc-list] Bug35013 - Incomplete check for pm() annotation
Date: Sat, 16 Feb 2008 19:36:44 -0500
User-agent: KMail/1.9.7

On Saturday 16 February 2008 04:47:06 pm Andrew Hutchinson wrote:

> Unfortunately it is only linker WARNING and easily missed during
> compilation.

# -Werror : Make all warnings into errors.
CFLAGS +=  -Werror

# -pedantic : Issue all the mandatory diagnostics listed in the C
# standard. Some of them are left out by default, since they trigger
# frequently on harmless code.
#
# -pedantic-errors : Issue all the mandatory diagnostics, and make all
# mandatory diagnostics into errors. This includes mandatory diagnostics that
# GCC issues without -pedantic but treats as warnings.
CFLAGS +=  -pedantic

#Warn if an undefined identifier is evaluated in an `#if' directive.
CFLAGS += -Wundef

#-Wunreachable-code
#Warn if the compiler detects that code will never be executed. [Seems to give 
#bogus results]
#CFLAGS += -Wunreachable-code

# Dump the address, size, and relative cost of each statement into comments in
# the generated assembler code. Used for debugging avr-gcc.
CFLAGS += -msize

# Dump the internal compilation result called "RTL" into comments in the
# generated assembler code. Used for debugging avr-gcc.
#CFLAGS += -mrtl




-- 
                http://www.wearablesmartsensors.com/
 http://www.softwaresafety.net/ http://www.designer-iii.com/
                 http://www.unusualresearch.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]