All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC PATCH 1/1] config.mk: Explicitly set used C and C++ standard
Date: Fri, 14 Apr 2017 14:23:12 +0200	[thread overview]
Message-ID: <20170414122312.22734-1-pvorel@suse.cz> (raw)

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
IMHO If we really want to require old standard, we should explicitly say which one.
I suppose passing a flag is appropriate way than to use c89 as CC variable.
---
 include/mk/config.mk.default | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/mk/config.mk.default b/include/mk/config.mk.default
index dff3479db..ff67486a1 100644
--- a/include/mk/config.mk.default
+++ b/include/mk/config.mk.default
@@ -54,8 +54,8 @@ bindir			:= ${exec_prefix}/bin
 libdir			:= ${exec_prefix}/lib
 mandir			:= ${datarootdir}/man
 
-CPPFLAGS		:=
-CFLAGS			:= -g -O2
+CPPFLAGS		:= -std=c++98
+CFLAGS			:= -g -O2 -std=gnu89
 LDLIBS			:=
 LDFLAGS			:=
 
-- 
2.11.0


             reply	other threads:[~2017-04-14 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-14 12:23 Petr Vorel [this message]
2017-04-27 13:10 ` [LTP] [RFC PATCH 1/1] config.mk: Explicitly set used C and C++ standard Cyril Hrubis
2017-04-27 13:22   ` Petr Vorel

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=20170414122312.22734-1-pvorel@suse.cz \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.