This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


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

Re: [patch] cgen/opc-ibld.scm


   > In general, I'm not a fan of such annotations in the source.  It detracts
   > from the readability of the program.  IMHO, the compiler should be fixed to
   > emit sensible warnings instead.

   You get what you ask for.  This is a specific warning enabled by the
   compiler with -Wall.  You could turn it off if you don't think it is
   valid :)

According to the man page, -Wall excludes warnings for constructs that are
valid in clean programs.  Library design kind of forces this kind of
construct -- providing a fixed interface, but not necessarily using all
arguments in a given function.

Ben


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