"docs/source/api/python/dgl.DGLGraph.rst" did not exist on "3ee7e11268eb96c44cad3e57d4c8aa870ed2fa02"
Commit 5cb03656 authored by Øystein Myrmo's avatar Øystein Myrmo Committed by Davis E. King
Browse files

Make Clang compile cpp11_test.cpp without warnings

Warnings about unused variables are quenched by simply incrementing the
variables in question. This makes the try_compile() call in CMake
succeed without warnings when checking for C++11 compatibility and using
-Wall.
parent e9d49fee
...@@ -26,8 +26,10 @@ public: ...@@ -26,8 +26,10 @@ public:
{ {
thread_local int stuff1 = 999; thread_local int stuff1 = 999;
auto x = 4; auto x = 4;
++stuff1;
decltype(x) asdf = 9; decltype(x) asdf = 9;
++asdf;
auto f = []() { cout << "in a lambda!" << endl; }; auto f = []() { cout << "in a lambda!" << endl; };
f(); f();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment