diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-01-09 18:53:21 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-01-09 18:53:21 +0000 |
commit | 74292e1d7ac4b53694acf36c0a12c1488843e018 (patch) | |
tree | 532f4cf3fa565ed041beeb7983304bd4c55ce8e6 /contrib/atf | |
parent | cf9be8affd642b2bb03c9ccc3930bc32218180a3 (diff) | |
download | FreeBSD-src-74292e1d7ac4b53694acf36c0a12c1488843e018.zip FreeBSD-src-74292e1d7ac4b53694acf36c0a12c1488843e018.tar.gz |
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
Diffstat (limited to 'contrib/atf')
-rw-r--r-- | contrib/atf/atf-c++/detail/test_helpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/atf/atf-c++/detail/test_helpers.cpp b/contrib/atf/atf-c++/detail/test_helpers.cpp index d13b124..dc35da9 100644 --- a/contrib/atf/atf-c++/detail/test_helpers.cpp +++ b/contrib/atf/atf-c++/detail/test_helpers.cpp @@ -67,14 +67,14 @@ build_check_cxx_o(const atf::tests::tc& tc, const char* sfile, 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 |