2008/12/20 Ralf S. Engelschall <rse+rpm-de...@rpm5.org<rse%2brpm-de...@rpm5.org> >
> On Sat, Dec 20, 2008, Per Øyvind Karlsen wrote: > > > [...] > > fsm.c: In function 'fsmMapFContext': > > fsm.c:772: warning: unused variable > > 'st' > > > > This one? > > Yes, exactly! > > > I get it on linux as well, but I never figured out why it complained > > about st being unused since it seemingly did get used two lines below, > > but my ignorance prolly' can't really debate much with technical > > details.. > > > > Could you clarify on why? :) > > The point is that the variable is used on the matchpathcon() "function > call" only. But matchpathcon() is a _macro_ which is defined only for > Linux's SELINUX situation. On non-Linux (or as in your case, Linux > but not SELINUX-enabled platform) the matchpathcon() macro expands to > nothing which in turn leads to the "unused variable" situation. Ah, no SELINUX here, so I guess that explains things then. :)