Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 18:53:22 +0000 (UTC)
From:      Julio Merino <jmmv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260491 - head/contrib/atf/atf-c++/detail
Message-ID:  <201401091853.s09IrMOZ073143@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmmv
Date: Thu Jan  9 18:53:21 2014
New Revision: 260491
URL: http://svnweb.freebsd.org/changeset/base/260491

Log:
  Use .cpp as the extension for temporary C++ files.
  
  Using a .c extension for a C++ file raises the following warning, which
  breaks our header file tests if the compiler is using -Werror as well:
  
  c++: warning: treating 'c' input as 'c++' when in C++ mode, this
  behavior is deprecated
  
  Obtained from:	atf (git 3104010c2849330440cc0ce108ff341913433339)
  MFC after:	3 days

Modified:
  head/contrib/atf/atf-c++/detail/test_helpers.cpp

Modified: head/contrib/atf/atf-c++/detail/test_helpers.cpp
==============================================================================
--- head/contrib/atf/atf-c++/detail/test_helpers.cpp	Thu Jan  9 18:51:57 2014	(r260490)
+++ head/contrib/atf/atf-c++/detail/test_helpers.cpp	Thu Jan  9 18:53:21 2014	(r260491)
@@ -67,14 +67,14 @@ build_check_cxx_o(const atf::tests::tc& 
 void
 header_check(const char *hdrname)
 {
-    std::ofstream srcfile("test.c");
+    std::ofstream srcfile("test.cpp");
     ATF_REQUIRE(srcfile);
     srcfile << "#include <" << hdrname << ">\n";
     srcfile.close();
 
     const std::string failmsg = std::string("Header check failed; ") +
         hdrname + " is not self-contained";
-    build_check_cxx_o_aux(atf::fs::path("test.c"), failmsg.c_str(), true);
+    build_check_cxx_o_aux(atf::fs::path("test.cpp"), failmsg.c_str(), true);
 }
 
 atf::fs::path



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401091853.s09IrMOZ073143>