Skip to content

Parametric generators: Was "warning: Macro %1 defined but not used within scope" removed in RPM 4.17+? #2501

Answered by pmatilai
hroncok asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, sorry. I remember seeing this but it's fallen through the cracks.

The warning was an artifact of a hack in the rpm level, fixed in commit a9bae82 (in >= 4.17). Rpm never warns on unused automatic macros such as %1, but in 4.16 the %1 passed to the parametric macro was not an automatic macro but a hardcoded hack.

That said, a generator not using the filename passed to it via %1 sounds suspicious in itself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hroncok
Comment options

Answer selected by hroncok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants