[hipl-dev] Re: [Merge] lp:~hipl-core/hipl/libhip into lp:hipl

  • From: Xin Gu <eric.nevup@xxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Mon, 27 Feb 2012 14:48:01 +0200

On 27/02/12 14:34, Diego Biurrun wrote:
I have one suggestion: for the function declaration in the header
file, I suggest that we can eliminate this kind of const because it
makes no sense for the API caller.
Having declaration and definition differ opens a very scary can of worms
IMO, let's not go down this road.  I very much miss a gcc option to
scream and shout at such abuses.


Hmm, well, it just a suggestion. Could you tell me what is this gcc option? I am really curious if gcc will really complain in this case. At lease currently there is no any report from compiler, if you accidentally miss a const of that kind in the declaration, you won't notice it.

Xin

Other related posts: