mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
ERR: Fixes for comeau compiler. NULL is a pointer of type void*, and cannot be compared directly with other pointer types. We use 0 instead.
This commit is contained in:
@@ -114,7 +114,7 @@ bool cmLoadedCommand::InitialPass(std::vector<std::string> const& args)
|
||||
|
||||
// create argc and argv and then invoke the command
|
||||
int argc = static_cast<int> (args.size());
|
||||
char **argv = NULL;
|
||||
char **argv = 0;
|
||||
if (argc)
|
||||
{
|
||||
argv = (char **)malloc(argc*sizeof(char *));
|
||||
|
||||
Reference in New Issue
Block a user