Skip to content

Commit 1cd5f2c

Browse files
author
MarcoFalke
committed
Merge #13895: Docs: fix GetWarnings docs to reflect behavior
13bb5ca Docs: fix GetWarnings docs to reflect behavior (Ben Woosley) Pull request description: In "gui", it returns all warnings, joined by a separator In "statusbar", it returns the last warning set which seems notionally to be the most important, though that is debatable Tree-SHA512: 5fc0dc68d143a040b7b893b7176188e2b064c2cf1d559420906e4de636e16e9ab7451a1b87603020a7a8f66d6b94f4ee6c7da2697efad879f9e6de9c0e0c9ac1
2 parents 7c82e40 + 13bb5ca commit 1cd5f2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/warnings.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ void SetfLargeWorkForkFound(bool flag);
1414
bool GetfLargeWorkForkFound();
1515
void SetfLargeWorkInvalidChainFound(bool flag);
1616
/** Format a string that describes several potential problems detected by the core.
17-
* strFor can have three values:
18-
* - "statusbar": get all warnings
19-
* - "gui": get all warnings, translated (where possible) for GUI
20-
* This function only returns the highest priority warning of the set selected by strFor.
17+
* @param[in] strFor can have the following values:
18+
* - "statusbar": get the most important warning
19+
* - "gui": get all warnings, translated (where possible) for GUI, separated by <hr />
20+
* @returns the warning string selected by strFor
2121
*/
2222
std::string GetWarnings(const std::string& strFor);
2323

0 commit comments

Comments
 (0)