\tl_new:N
  \g_defined_but_unused_tl  % warning on this line
\tl_gset:Nn
  \g_defined_but_unused_tl
  { foo }
