nickdrozd / reazon

miniKanren for Emacs
GNU General Public License v3.0
112 stars 6 forks source link

Bogus "not left unused" compiler warning #7

Open nickdrozd opened 6 years ago

nickdrozd commented 6 years ago
(reazon-run* _
      (reazon-likes 'robin 'lee))

This expression gets marked by the compiler with Warning: variable ‘_’ not left unused.

Clearly the variable is left unused in the query, but it gets bound in the macro.

Is there a declaration or something that would teach the compiler what "unused" means in this context? Barring that, is there a declaration or something to disable the warning in this context?