This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do we write unused arguments?


On Thu, Nov 05, 2015 at 11:19:36AM +0000, Richard Earnshaw wrote:
> > It depends, if the argument is conditionally (based on preprocessor macros)
> > used, then we need the first form.
> > If it is completely unused, I also prefer the last form, but there are cases
> > where one wants to document the purpose of the unused argument or something
> > similar and in that case the third one is useful.
> 
> Except, of course, that we're moving away from conditionally compiled
> code, so we should never need the first (or second) forms.

It will take time, there are still many target macros with arguments,
some of which are not used on all targets, and converting some of those
macros to hooks might be performance problem.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]