mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
correctly set location for cpp domain log
"Duplicate declarion" warning, name variant is missing the location= specifier causing string formatting to fail closes #4962
This commit is contained in:
parent
1e631b3fa4
commit
071db1ecbc
@ -6055,7 +6055,7 @@ class CPPDomain(Domain):
|
|||||||
msg = "Duplicate declaration, also defined in '%s'.\n"
|
msg = "Duplicate declaration, also defined in '%s'.\n"
|
||||||
msg += "Name of declaration is '%s'."
|
msg += "Name of declaration is '%s'."
|
||||||
msg = msg % (ourNames[name], name)
|
msg = msg % (ourNames[name], name)
|
||||||
logger.warning(msg, docname)
|
logger.warning(msg, location=docname)
|
||||||
else:
|
else:
|
||||||
ourNames[name] = docname
|
ourNames[name] = docname
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user