~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getopt.cc

  • Committer: Monty Taylor
  • Date: 2008-12-01 17:53:42 UTC
  • mto: This revision was merged to the branch mainline in revision 637.
  • Revision ID: monty@bitters-20081201175342-hcvfaecqmljhv86g
Fixed Sun Studio warnings in mysys.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
typedef void (*init_func_p)(const struct my_option *option, char **variable,
32
32
                            int64_t value);
33
33
 
34
 
static void default_reporter(enum loglevel level, const char *format, ...);
 
34
void default_reporter(enum loglevel level, const char *format, ...);
35
35
my_error_reporter my_getopt_error_reporter= &default_reporter;
36
36
 
37
37
static int findopt(char *optpat, uint32_t length,
80
80
 
81
81
bool my_getopt_skip_unknown= 0;
82
82
 
83
 
static void default_reporter(enum loglevel level,
84
 
                             const char *format, ...)
 
83
void default_reporter(enum loglevel level,
 
84
                      const char *format, ...)
85
85
{
86
86
  va_list args;
87
87
  va_start(args, format);
1051
1051
*/
1052
1052
 
1053
1053
static void fini_one_value(const struct my_option *option, char **variable,
1054
 
                           int64_t value __attribute__ ((unused)))
 
1054
                           int64_t)
1055
1055
{
1056
1056
  switch ((option->var_type & GET_TYPE_MASK)) {
1057
1057
  case GET_STR_ALLOC: