Skip to content

Commit

Permalink
Fix cql_test_env::create_keyspace() in debug mode with gcc 7
Browse files Browse the repository at this point in the history
gcc 7 complains about a use after scope bug in create_keyspace. It looks like a false positive to me.
  • Loading branch information
avikivity committed Jul 5, 2017
1 parent 25cbea1 commit 408d540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cql_test_env.cc
Expand Up @@ -243,7 +243,7 @@ class single_node_cql_env : public cql_test_env {
}

future<> create_keyspace(sstring name) {
auto query = sprint("create keyspace %s with replication = { 'class' : 'org.apache.cassandra.locator.SimpleStrategy', 'replication_factor' : 1 };", name);
auto query = sstring(sprint("create keyspace %s with replication = { 'class' : 'org.apache.cassandra.locator.SimpleStrategy', 'replication_factor' : 1 };", name));
return execute_cql(query).discard_result();
}

Expand Down

0 comments on commit 408d540

Please sign in to comment.