Only declare failure_message() if we HAVE_PLUGINS (since it's only used when that's the case).

svn path=/trunk/; revision=27051
This commit is contained in:
Jeff Morriss 2008-12-18 19:24:34 +00:00
parent c544c20956
commit a7b7e98cb1
2 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,7 @@ usage(gboolean is_error)
fprintf(output, "If no options are given, default is to display all infos\n");
}
#ifdef HAVE_PLUGINS
/*
* Don't report failures to load plugins because most (non-wiretap) plugins
* *should* fail to load (because we're not linked against libwireshark and
@ -277,6 +278,7 @@ failure_message(const char *msg_format _U_, va_list ap _U_)
{
return;
}
#endif
int

View File

@ -372,6 +372,7 @@ list_encap_types(void) {
}
}
#ifdef HAVE_PLUGINS
/*
* Don't report failures to load plugins because most (non-wiretap) plugins
* *should* fail to load (because we're not linked against libwireshark and
@ -382,6 +383,7 @@ failure_message(const char *msg_format _U_, va_list ap _U_)
{
return;
}
#endif
int
main(int argc, char *argv[])