This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Oct 6, 2010 at 8:49 AM, Andi Kleen<andi@firstfloor.org> wrote:
+void +setproctitle (const char *name, ...) +{ + (void) name; + +#ifdef HAVE_PRCTL_SET_NAME + /* On Linux this sets the top visible "comm", but not necessarily + the name visible in ps. */ + prctl (PR_SET_NAME, name); +#endif +}Why not use ATTRIBUTE_UNUSED instead of "(void)name;" ? I also don't like this idea really because it causes some folks not to understand what the actual executable it is.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |