Hi Serge, > Right I'm not objecting to the arguments being passed, but I'm > wondering > why he specifically has: > >> > > + (void) extra_env; >> > > + (void) extra_keep; > > in the function there.
In order to suppress warnings from the compiler about unused arguments. These lines suppress those warnings, stating to the compiler "Yes, I know that the arguments are unused, but I currently want it that way." Now obviously you can compile lxc without those warnings activated, but distributions may override this, causing the build logs to be uselessly bloated. (Obviously, a single occurrence doesn't matter that much, but I try to do this in every function where for some valid reason I don't use all the arguments.) Of course, those lines will disappear post 0.9, once these options are actually implemented. (As to the meaning of the options, I don't have anything to add to Michael's explanation.) -- Christian ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel