[ccan] Annoying warning, a.k.a. how to add to CFLAGS

Ian Zimmerman itz at very.loosely.org
Fri Sep 1 13:23:50 AEST 2017


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 ;-)

Is there a reason why this is not in the master Makefile?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
Do obvious transformation on domain to reply privately _only_ on Usenet.


More information about the ccan mailing list