Skip to content

Fix fstracecheck2 so trace declarations are actually validated.#30

Open
pacujo wants to merge 1 commit into
WithSecureOpenSource:masterfrom
pacujo:fix-fstracecheck2
Open

Fix fstracecheck2 so trace declarations are actually validated.#30
pacujo wants to merge 1 commit into
WithSecureOpenSource:masterfrom
pacujo:fix-fstracecheck2

Conversation

@pacujo

@pacujo pacujo commented Jul 11, 2026

Copy link
Copy Markdown

With plain -E preprocessing, GCC inserts #line directives inside FSTRACE_DECL expansions, splitting fstrace_specify() across several lines. The declaration regex never matches, so fstracecheck2 finds no events and silently skips validation. Preprocess with -P to suppress linemarkers, and compile checks with -Wformat -Werror like v1.

With plain -E preprocessing, GCC inserts #line directives inside
FSTRACE_DECL expansions, splitting fstrace_specify() across several
lines. The declaration regex never matches, so fstracecheck2 finds no
events and silently skips validation. Preprocess with -P to suppress
linemarkers, and compile checks with -Wformat -Werror like v1.

Co-authored-by: Cursor <cursoragent@cursor.com>
@pacujo

pacujo commented Jul 11, 2026

Copy link
Copy Markdown
Author

Note: this problem was detected and fixed on a fresh Linux64 (Fedora 44). I don't know how it would behave on older Linuxes or other OS's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant