Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Strange compiler warnings?

2007-04-17 by Richard Cooke

Yes, they are called from the C file.  It was a very late night last
night and I finished (at least I thought I had) part of the code.  I
didn't actually add the C file into the project until this morning.  A
s soon as I actually called the functions the warnings went away.

Thanks for jogging my brain awake.

Richard

--- In AVR-Chat@yahoogroups.com, Ralph Hilton <ralph@...> wrote:
>
> On Tue, 17 Apr 2007 16:03:56 -0000 you wrote:
> 
> Are you actually calling the functions somewhere?
> 
> >Hi Folks,
> >
> >This is probably something I'm overlooking but can somebody point me
> >in the right way concerning this?
> >
> >I need to add this to one of the header files:
> >
> >#define  SPIF     7  // bit position for the SPIF bit in the SPSR 
> >
> >If I add this I get 8 warnings complaining 
> >"Unreferenced function 'Function1'"
> >"Unreferenced function 'Function2'"
> >"Unreferenced function 'Function3'"
> >"Unreferenced function 'Function4'"
> >"Unreferenced function 'Function5'"
> >"Unreferenced function 'Function6'"
> >"Unreferenced function 'Function7'"
> >"Unreferenced function 'Function8'"
> >
> >I have properly (I think) defined these functions as prototypes in the
> >Header file.  If I remove the #define SPIF  7 line the warnings all go
> >away but then the compiler gives me two errors complaining that SPIF
> >is undefined.  
> >
> >I'm using the latest CodeVision.
> >
> >Any ideas?
> >
> >Thanks,
> >
> >Richard Cooke
> 
> --
> Ralph Hilton
> http://www.ralphhilton.org
> C-Meter: http://www.cmeter.org
> FZAOINT http://www.fzaoint.net
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.