Mark ZeekString vector helper methods deprecated

This commit is contained in:
Tim Wojtulewicz 2025-06-06 12:26:43 -07:00
parent ac9ee9f219
commit e6d0f8a64d
2 changed files with 6 additions and 0 deletions

View file

@ -587,7 +587,10 @@ TEST_CASE("searching/modification") {
CHECK_EQ(s, *s3);
delete s3;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
char* temp = zeek::String::VecToString(splits);
#pragma GCC diagnostic pop
CHECK_EQ(std::string(temp), "[this, is, a, test,]");
free(temp);

View file

@ -166,8 +166,11 @@ public:
Vec* Split(const IdxVec& indices) const;
// Helper functions for vectors:
[[deprecated("Remove in v8.1. The ZeekString vector methods are unused.")]]
static VectorVal* VecToPolicy(Vec* vec);
[[deprecated("Remove in v8.1. The ZeekString vector methods are unused.")]]
static Vec* VecFromPolicy(VectorVal* vec);
[[deprecated("Remove in v8.1. The ZeekString vector methods are unused.")]]
static char* VecToString(const Vec* vec);
protected: