Skip to content

Commit 8caf533

Browse files
committed
Fix Windows test warnings.
Fix warnings as errors in test.
1 parent ad477ee commit 8caf533

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • source/MaterialXTest/MaterialXCore

source/MaterialXTest/MaterialXCore/Node.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include <MaterialXFormat/XmlIo.h>
1313
#include <MaterialXFormat/Util.h>
1414

15-
#include <iostream>
16-
1715
namespace mx = MaterialX;
1816

1917
bool isTopologicalOrder(const std::vector<mx::ElementPtr>& elems)
@@ -691,8 +689,6 @@ void testFunctionalNodeDef()
691689

692690
mx::InterfaceElementPtr implementation = nodeDef->getImplementation();
693691
REQUIRE(implementation != nullptr);
694-
std::string msg = "Testing NodeDef: " + nodeDefName + " with implementation: " + implementation->getName();
695-
INFO(msg);
696692
mx::NodeGraphPtr functionalNodeGraph = implementation->asA<mx::NodeGraph>();
697693
REQUIRE(functionalNodeGraph != nullptr);
698694
if (functionalNodeGraph)
@@ -719,11 +715,11 @@ void testFunctionalNodeDef()
719715
{
720716
referenceNodeGraph->setNodeDefString(nodeDefName);
721717

722-
mx::InterfaceElementPtr implementation = nodeDef->getImplementation();
718+
implementation = nodeDef->getImplementation();
723719
REQUIRE(implementation != nullptr);
724720
std::string msg = "Testing NodeDef: " + nodeDefName + " with implementation: " + implementation->getName();
725721
INFO(msg);
726-
mx::NodeGraphPtr functionalNodeGraph = implementation->asA<mx::NodeGraph>();
722+
functionalNodeGraph = implementation->asA<mx::NodeGraph>();
727723
REQUIRE(functionalNodeGraph != nullptr);
728724
if (functionalNodeGraph)
729725
{

0 commit comments

Comments
 (0)