CCAN Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Zimmerman <itz@very.loosely.org>
To: ccan@lists.ozlabs.org
Subject: Annoying warning, a.k.a. how to add to CFLAGS
Date: Thu, 31 Aug 2017 20:23:50 -0700	[thread overview]
Message-ID: <20170901032350.zoafocu3c5ifknq6@matica.foolinux.mooo.com> (raw)

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.
_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

             reply	other threads:[~2017-09-01  3:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-01  3:23 Ian Zimmerman [this message]
2017-09-01  5:11 ` Annoying warning, a.k.a. how to add to CFLAGS David Gibson
2017-09-01 11:46 ` Rhys Ulerich
2017-09-04  0:57 ` Rusty Russell
2017-09-05  1:15   ` Andrew Jeffery

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170901032350.zoafocu3c5ifknq6@matica.foolinux.mooo.com \
    --to=itz@very.loosely.org \
    --cc=ccan@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).