~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_noop/logging_noop.cc

  • Committer: Mark Atwood
  • Date: 2008-09-12 02:25:32 UTC
  • mto: This revision was merged to the branch mainline in revision 437.
  • Revision ID: mark@fallenpegasus.com-20080912022532-n4oijzfs5r2medho
changes of Brian's recommendation
  get rid of "stuff" pointer
  better handling of unused

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <drizzled/server_includes.h>
5
5
#include <drizzled/plugin_logging.h>
6
6
 
7
 
bool logging_noop_func_pre (THD *thd, void *stuff)
 
7
bool logging_noop_func_pre (THD *thd __attribute__((unused)))
8
8
{
9
 
  /* something fake so unused var warning doesnt cause compile fail */
10
 
  return ((void *)thd == stuff);
11
 
 
12
9
  return 0;
13
10
}
14
11
 
15
 
bool logging_noop_func_post (THD *thd, void *stuff)
 
12
bool logging_noop_func_post (THD *thd __attribute__((unused)))
16
13
{
17
 
  /* something fake so unused var warning doesnt cause compile fail */
18
 
  return ((void *)thd == stuff);
19
 
 
20
14
  return 0;
21
15
}
22
16