Repository navigation
Conversation
As of LLVM 21 (llvm/llvm-project#122790), libcxx's `std::basic_string`'s constructor is marked as `_Nonnull`, so we can't pass `NULL`s here. Comiling this with LLVM 21's libcxx errors out with: ```console ../emscripten/cache/ports/regal/regal-version_7/src/boost/boost/print/string_list.hpp:281:46: error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull] 281 | PushBack(*this).assign(string ? string : T(NULL)); | ^~~~ ../emscripten/cache/sysroot/include/unistd.h:33:14: note: expanded from macro 'NULL' 33 | #define NULL 0L ``` Suppressing this error with `-Wno-nonnull` would make this compile, but that can result in runtime errors.
Author
|
I think i'd rather leave this legacy third party codebase alone and suppress the error instead. I don't think we want to get into the business of maintaining this code. |
|
Looks like this is even worse and we have copy of boost somehow embedded here in the regel repo? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As of LLVM 21 (llvm/llvm-project#122790), libcxx's
std::basic_string's constructor is marked as_Nonnull, so we can't passNULLs here. Comiling this with LLVM 21's libcxx errors out with:Suppressing this error with
-Wno-nonnullwould make this compile, but that can result in runtime errors.