On Mon, 2017-09-04 at 10:27 +0930, Rusty Russell wrote:
> > Ian Zimmerman <i...@very.loosely.org> writes:
> > When I checkout current master, run ./tools/configurator/configurator >
> > config.h and then make, I get exactly 1 warning for the whole thing:
> > 
> > ccan/strgrp/strgrp.c: In function ‘grp_for’:
> > ccan/strgrp/strgrp.c:296:0: warning: ignoring #pragma omp parallel 
> > [-Wunknown-pragmas]
> >      #pragma omp parallel for schedule(dynamic)
> > 
> > I figured out that I can silence that by adding -fopenmp to my CFLAGS.
> > But how to do that permanently?  I don't want to specify that on the
> > command line every time, and I also don't want to set it in the
> > environment because sometimes I compile other things than ccan ;-)
> 
> Hmm, well, if you're compiling strgrp, you should be adding CFLAGS
> from _info, which sets this correctly.
> 
> In this case, we could just test defined(_OPENMP) instead of
> HAVE_OPENMP, though, which would automagically work.

Yeah, I was never really happy with what I did with HAVE_OPENMP, and I
don't recall why I did it. I'd be happy with a patch implementing
Rusty's suggestion of #if defined(_OPENMP).

Andrew

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

Reply via email to