mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Warn if a POP-OMIT-CONTEXT matches a PUSH-OMIT-CONTEXT in a different file.
All checks were successful
Remind unit tests / tests (push) Successful in 37s
All checks were successful
Remind unit tests / tests (push) Successful in 37s
This commit is contained in:
@@ -185,6 +185,9 @@ int PopOmitContext(ParsePtr p)
|
|||||||
/* Remove the context from the stack */
|
/* Remove the context from the stack */
|
||||||
SavedOmitContexts = c->next;
|
SavedOmitContexts = c->next;
|
||||||
|
|
||||||
|
if (c->filename && FileName && strcmp(c->filename, FileName)) {
|
||||||
|
Wprint("POP-OMIT-CONTEXT at %s:%d matches PUSH-OMIT-CONTEXT in different file: %s:%d", FileName, LineNo, c->filename, c->lineno);
|
||||||
|
}
|
||||||
/* Free memory used by the saved context */
|
/* Free memory used by the saved context */
|
||||||
if (c->partsave) free(c->partsave);
|
if (c->partsave) free(c->partsave);
|
||||||
if (c->fullsave) free(c->fullsave);
|
if (c->fullsave) free(c->fullsave);
|
||||||
|
|||||||
Reference in New Issue
Block a user