mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Mark ZeekString vector helper methods deprecated
This commit is contained in:
parent
ac9ee9f219
commit
e6d0f8a64d
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue