You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a macro is only used in the same header file where it's defined, it's reported as only used once. That is dumb since the way to solve that issue would be to move the macro to the place where it's used… which… well… it's the same actual place.
To Reproduce
Create this header file:
-define(ONE, 1).
-define(TWO, ?ONE+?ONE).
Include it in two modules and use ?TWO in both of them.
Run rebar3 hank and you'll get…
Bug Description
If a macro is only used in the same header file where it's defined, it's reported as only used once. That is dumb since the way to solve that issue would be to move the macro to the place where it's used… which… well… it's the same actual place.
To Reproduce
Create this header file:
Include it in two modules and use
?TWO
in both of them.Run
rebar3 hank
and you'll get…Expected Behavior
No warnings.
The text was updated successfully, but these errors were encountered: