ENH: fix warning and remove unused variable
This commit is contained in:
parent
576f0b65c7
commit
7db7b981af
@ -17,8 +17,7 @@
|
|||||||
#include "cmSourceGroupCommand.h"
|
#include "cmSourceGroupCommand.h"
|
||||||
|
|
||||||
inline std::vector<std::string> tokenize(const std::string& str,
|
inline std::vector<std::string> tokenize(const std::string& str,
|
||||||
const std::string& sep,
|
const std::string& sep)
|
||||||
bool skipEmptyTokens)
|
|
||||||
{
|
{
|
||||||
std::vector<std::string> tokens;
|
std::vector<std::string> tokens;
|
||||||
if(str.size() == 0)
|
if(str.size() == 0)
|
||||||
@ -64,7 +63,7 @@ bool cmSourceGroupCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
delimiter = m_Makefile->GetDefinition("SOURCE_GROUP_DELIMITER");
|
delimiter = m_Makefile->GetDefinition("SOURCE_GROUP_DELIMITER");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> folders = tokenize(args[0], delimiter, true);
|
std::vector<std::string> folders = tokenize(args[0], delimiter);
|
||||||
|
|
||||||
const char *parent = NULL;
|
const char *parent = NULL;
|
||||||
cmSourceGroup* sg = NULL;
|
cmSourceGroup* sg = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user