Closes #2078.
- the CMake build system now enables `-Wextra` when building C++
- some Cgraph functions that take `char*` arguments that they do not modify have
been updated to take `const char*` arguments #634
+- incorrectly using the `layout` attribute on anything other than a graph now
+ results in a warning about this being invalid #2078
## [2.48.0] - 2021-07-17
ldict = agdictof(g, kind);
lsym = aglocaldictsym(ldict, name);
if (lsym) { /* update old local definition */
+ if (g != root && streq(name, "layout"))
+ agerr(AGWARN, "layout attribute is invalid except on the root graph\n");
agstrfree(g, lsym->defval);
lsym->defval = agstrdup(g, value);
rv = lsym;
ret, _, _ = run_c(c_src, link=["gvc"])
assert ret == 0
-@pytest.mark.xfail(strict=True)
def test_2078():
"""
Incorrectly using the "layout" attribute on a subgraph should result in a