[CXX-1462] Adding -Werror on CMake command line inhibits DEPRECATED macro Created: 04/Nov/17  Updated: 04/Nov/17  Resolved: 04/Nov/17

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CXX-1348 Remove -Werror from CMAKE_CXX_FLAGS a... Closed

 Description   

If you have -Werror in CMAKE_CXX_FLAGS, it causes the detection of support for _attribute_((deprecated)) to misfire, resulting in CMake deciding that the compiler doesn't offer it, meaning that you don't get errors for use of (un-suppressed) deprecations.

The fix is to explicitly pass -DCOMPILER_HAS_DEPRECATED_ATTR:Bool=true on the CMake line as well.


Generated at Wed Feb 07 22:02:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.