[Mesa-dev] [PATCH 09/10] gallium, clover: add OpenCL interoperability support for CL events

Marek Olšák maraeo at gmail.com
Tue Apr 21 12:03:04 PDT 2015


On Tue, Apr 21, 2015 at 5:45 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Hmm pretty sure I've read somewhere (old version of GCC's manual?) that
> such warnings are enabled by default and cannot be controlled by the
> compiler (for C++ of course). I'm not an C++ expect so it could be that
> the standard does not require declarations/prototypes for non static
> functions ?

A prototype is only required by C++ when a function is called.
Functions don't need prototypes for themselves. Only their call sites
need them.

>
> Seems like we're building clover without even a single -W flag - perhaps
> we could add some (not with this patch of course) ?

Yes, I agree.

Marek


More information about the mesa-dev mailing list