-Wno-deprecated-declarations needed to compile boost-1.89 with -Werror on

Đang mở
#1,101 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu bằng cách xem xét boost/multi_array/storage_order.hpp và boost/array.hpp, đặc biệt là lệnh gọi assign đã lỗi thời và định nghĩa Boost.Deprecated được nêu trong báo cáo. Kiểm tra các bài kiểm thử Boost.MultiArray liên quan hoặc cấu hình build để biên dịch với Clang và -Werror; công việc được xem là hoàn tất khi các header của Boost 1.89 biên dịch mà không yêu cầu người dùng phải loại bỏ cảnh báo deprecation này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When upgrading from boost-1.86 to 1.89, got the following error when building my files that include boost headers:

In file included from src/ComputeStats.cpp:18:
In file included from /dsat/boost/rhel8_intel64_icpx/include/boost/multi_array.hpp
In file included from /dsat/boost/rhel8_intel64_icpx/include/boost/multi_array/base.hpp
/dsat/boost/rhel8_intel64_icpx/include/boost/multi_array/storage_order.hpp:51:18: error: 'assign' is deprecated: please use 'fill' instead [-Werror, -Wdeprecated-decratations]
   51 |   ascending_.assign(true);
        |
/dsat/boost/rhel8_intel64_icpx/include/boost/multi_array/multi_array_ref.hpp:113:18: note: in instantiation of member function 'boost:general_storage_order<2>::general_storage_order' requested here
  113 |   base_(base), storage_(c_storage_order()) {
         |
....
/dsat/boost/rhel8_intel64_icpx/include/boost/array.hpp:193:9: note: 'assign' has been explicitly marked deprecated here
 193 |   BOOST_DEPRECATED( "please use 'fill' instead" )
        |
/dsat/boost/rhel8_intel64_icpx/include/boost/config/compiler/clang.hpp:346:46: note: expanded from macro 'BOOST_DEPRECATED'
 346 | #define BOOST_DEPRECATED(msg) __attribute__((deprecated(msg)))
1 error generated

I can work around this by adding -Wno-deprecated-declarations to my cxx flags, but since this is internal to boost, I think it should be addressed. Thank you!

Ngôn ngữ chính
HTML
Star
8.6k
Fork
2k
Merge trung bình
9 giờ 35 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của boostorg/boost

Tất cả issue của boostorg/boost

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.