[Top][All Lists]

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

Re: [avr-gcc-list] calling function pointers via pointers ?

From: Andy Warner
Subject: Re: [avr-gcc-list] calling function pointers via pointers ?
Date: Thu, 29 Sep 2005 09:53:43 -0500
User-agent: Mutt/1.2.5i

Vincent Trouilliez wrote:
> [...]
> ui.c:63: warning: initialization discards qualifiers from pointer target
> type
> I am really lost as to how to specify the address of menu_sub in
> ui_menu_main....

OK - I'm going to ask _you_ to do something, just to mix things up here:

1. realise it's a _warning_ (that's why it says "warning:"). RTF-gcc-M
   to see what to do to let the compiler just move along after telling
   you about it. See if your code will work.

2. RTF-gcc-M or google to see what the compiler is telling you. This
   technique will scale well to the myriad compiler warnings you are
   going to see over the years. Asking us about each one isn't going
   to scale nearly as well.

It's important to understand that I don't want to detract from some of
the very interesting stuff that appears during these discussions, but
"help me with this self-explanatory (or at least easily googleable)
compiler error" isn't _really_ the function of this list.

Andy Warner             Voice: (612) 801-8549   Fax: (208) 575-5634

reply via email to

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