Page MenuHomeFreeBSD

Add a CXXWARNFLAGS variable
ClosedPublic

Authored by asomers on Jul 30 2019, 4:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 3, 8:29 AM
Unknown Object (File)
Fri, Aug 1, 1:36 PM
Unknown Object (File)
Wed, Jul 30, 10:01 AM
Unknown Object (File)
Jul 5 2025, 7:19 PM
Unknown Object (File)
Jun 11 2025, 3:11 PM
Unknown Object (File)
Jun 11 2025, 1:43 AM
Unknown Object (File)
Jun 8 2025, 6:54 AM
Unknown Object (File)
Jun 7 2025, 6:58 AM

Details

Summary

Add a CXXWARNFLAGS variable

Some warning flags are valid for C++ but not C. GCC 8 complains if you pass
such flags when building a C file. Using a separate variable for these
flags allows building both C and C++ files in the same directory (such as
the fusefs tests) under GCC.

Test Plan

Tested with riscv64-unknown-freebsd13.0-g++ 8.1.0 and the fusefs
tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25598
Build 24198: arc lint + arc unit

Event Timeline

Seems fine to me.

Previously you tried C++-only flags in CFLAGS in the fuse tests?

Seems fine to me.

Previously you tried C++-only flags in CFLAGS in the fuse tests?

Yes. Neither Clang nor GCC 6 complained, but GCC 8 does. See https://svnweb.freebsd.org/base/projects/fuse2/tests/sys/fs/fusefs/Makefile?revision=350163&view=markup#l68 .

This revision is now accepted and ready to land.Jul 30 2019, 7:23 PM
This revision was automatically updated to reflect the committed changes.