Closed cpsievert closed 1 year ago
I think this change should fix it (though I haven't tested yet):
--- a/src/libsass/src/ast_values.cpp
+++ b/src/libsass/src/ast_values.cpp
@@ -481,9 +481,9 @@ namespace Sass {
{
if (hash_ == 0) {
hash_ = std::hash<double>()(value_);
- for (const auto numerator : numerators)
+ for (const auto& numerator : numerators)
hash_combine(hash_, std::hash<sass::string>()(numerator));
- for (const auto denominator : denominators)
+ for (const auto& denominator : denominators)
hash_combine(hash_, std::hash<sass::string>()(denominator));
}
return hash_;
Yep, thanks, I noticed LibSass 3.6.5 addressed it in https://github.com/sass/libsass/pull/3129, so I'm thinking we just update LibSass (https://github.com/rstudio/sass/pull/123)?
That's a good idea. I didn't realize that we weren't on the latest version of libsass.
A fix for this warning has been request by CRAN (by 2023-01-25)