-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated #208
Labels
Milestone
Comments
dschlaep
added a commit
that referenced
this issue
Jul 10, 2018
- addressing #206: both clang and gcc work (at least locally) * CXX=clang++ make clean test test_run * CXX=g++ make clean test test_run - don't overwrite standard flags such as CFLAGS, etc. - ignore errors when cleaning up (prefix commands with a hyphen) - ignore errors arising from deprecated warnings (as c code under clang++) --> remove once #208 is fixed - target `clean` is now a synonym of `cleaner` - first target is now `bin`, i.e., calling `make` will now compile the executable - updated `SW_Output_mock.c`
dschlaep
added a commit
that referenced
this issue
Jul 12, 2018
- close #213 (remove "-Werror" from production builds; now only used as part of `warning_flags_severe`) - address #208 (resolved for `make test` because we now compile the library with CC and the test binary with CXX; not resolved for `make test_severe` and `make cov`) - wrapped all c header files in "extern C" to avoid name mangling: - fixed global variable definitions in file `test/sw_maintest.cc` - makefile * gained target `help` * renamed targets `test` and `testci` to `test_severe` and `test` - updated yml instructions of CIs - updated README
this is resolved for make target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replicate that warning by using clang++ as the compiler, i.e.,
(see, e.g., #206 (comment))
--> Solution: compile c code with CC (i.e., target
lib_target_test
etc.) and c++ code with CXX (i.e., targetstest
etc.)--> Once this is resolved, remove
-Wno-error=deprecated
frommakefile
The text was updated successfully, but these errors were encountered: