Skip to content

Commit 343b654

Browse files
committed
Cast away volatile after accessing vector
1 parent ac49e4a commit 343b654

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backward.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3819,7 +3819,7 @@ class SourceFile {
38193819

38203820
static std::vector<std::string> &get_mutable_paths_from_env_variable() {
38213821
static volatile std::vector<std::string> paths = get_paths_from_env_variable_impl();
3822-
return paths;
3822+
return const_cast<std::vector<std::string>&>(paths);
38233823
}
38243824

38253825
static const std::vector<std::string> &get_paths_from_env_variable() {

0 commit comments

Comments
 (0)