2008/12/20 Ralf S. Engelschall <r...@rpm5.org> > RPM Package Manager, CVS Repository > http://rpm5.org/cvs/ > > ____________________________________________________________________________ > > Server: rpm5.org Name: Ralf S. Engelschall > Root: /v/rpm/cvs Email: r...@rpm5.org > Module: rpm Date: 20-Dec-2008 09:09:47 > Branch: HEAD Handle: 2008122008094700 > > Modified files: > rpm/lib fsm.c > > Log: > get rid of one more compile-time warning under non-Linux systems > > Summary: > Revision Changes Path > 2.180 +1 -2 rpm/lib/fsm.c > > ____________________________________________________________________________ > > patch -p0 <<'@@ .' > Index: rpm/lib/fsm.c > > ============================================================================ > $ cvs diff -u -r2.179 -r2.180 fsm.c > --- rpm/lib/fsm.c 13 Dec 2008 20:37:56 -0000 2.179 > +++ rpm/lib/fsm.c 20 Dec 2008 08:09:47 -0000 2.180 > @@ -769,9 +769,8 @@ > { > fsm->fcontext = NULL; > if (!fsm->nofcontexts) { > - struct stat * st = &fsm->sb; > security_context_t scon = NULL; > - int xx = matchpathcon(fsm->path, st->st_mode, &scon); > + int xx = matchpathcon(fsm->path, fsm->sb.st_mode, &scon); > > /*...@-moduncon@*/ > if (!xx && scon != NULL) > @@ . > ______________________________________________________________________ > RPM Package Manager http://rpm5.org > CVS Sources Repository rpm-...@rpm5.org >
fsm.c: In function 'fsmMapFContext': fsm.c:772: warning: unused variable 'st' This one? 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? :)