This is the mail archive of the gcc-patches@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: [Ada] Trivial fix for warning in utils.c


guerby@acm.org wrote:-


> Looking in other ada/*.c files both style are used (PARAMS((void)) vs
> (void))

Using PARAMS ((void)) is fine whatever your compiler; on K & R it expands
to () and for ANSI compilers it becomes (void).

It's in the function definition that it really matters what you do.

Sorry for not putting the declaration in gigi.h; I never noticed that.
I assumed GNAT pulled it all in from tree.h like other front ends do.
I'll get it right in future.

Neil.


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