su: suppress "warning: unused variable 'user_buf'"
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 30 Nov 2010 08:47:56 +0000 (09:47 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 30 Nov 2010 08:47:56 +0000 (09:47 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/su.c

index 5bec4bc8b3129f919bca343cb4625790a2fbdbee..c31e7e771276bf544aa186932629e8474bade3ad 100644 (file)
@@ -42,7 +42,9 @@ int su_main(int argc UNUSED_PARAM, char **argv)
        struct passwd *pw;
        uid_t cur_uid = getuid();
        const char *tty;
+#if ENABLE_FEATURE_UTMP
        char user_buf[64];
+#endif
        const char *old_user;
 
        flags = getopt32(argv, "mplc:s:", &opt_command, &opt_shell);