/var/lib/jenkins/workspace/s2geometry_master/s2geometry/src/s2/encoded_s2point_vector_test.cc: In member function 'virtual void s2coding::EncodedS2PointVectorTest_SnappedFractalLoops_Test::TestBody()':
/var/lib/jenkins/workspace/s2geometry_master/s2geometry/src/s2/encoded_s2point_vector_test.cc:377:24: error: cannot convert 'absl::lts_20240116::Flag' {aka 'absl::lts_20240116::flags_internal::Flag'} to 'int32' {aka 'int'}
377
In file included from /var/lib/jenkins/workspace/s2geometry_master/s2geometry/src/s2/encoded_s2point_vector_test.cc:43:
/var/lib/jenkins/workspace/s2geometry_master/s2geometry/src/s2/s2testing.h:264:20: note: initializing argument 1 of 'void S2Testing::Random::Reset(int32)'
264 | void Reset(int32 seed);
| ~~^~~~
https://github.com/google/s2geometry/blob/7940c9f791819211782bd7df51632657172c17c2/src/s2/encoded_s2point_vector_test.cc#L377
This line fails to compile with recent versions of abseil with the error. below. It should be changed to (adding .value()):
S2Testing::rnd.Reset(absl::GetFlag(FLAGS_s2_random_seed));
~~~~~~~In file included from /var/lib/jenkins/workspace/s2geometry_master/s2geometry/src/s2/encoded_s2point_vector_test.cc:43: /var/lib/jenkins/workspace/s2geometry_master/s2geometry/src/s2/s2testing.h:264:20: note: initializing argument 1 of 'void S2Testing::Random::Reset(int32)' 264 | void Reset(int32 seed); |
~~^~~~