~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/hello_events/hello_events.cc

  • Committer: Andrew Hutchings
  • Date: 2011-03-29 09:33:49 UTC
  • mto: (2257.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: andrew@linuxjedi.co.uk-20110329093349-oz4cgb9f7l1032m3
Fix Drizzle to compile in GCC 4.6 (which fires warnings and therefore errors if a variable is set and not read)

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
/* The event observer.*/
249
249
bool HelloEvents::observeEventDo(EventData &data)
250
250
{
251
 
  bool result= false;
252
 
  
253
251
  switch (data.event) {
254
252
  case AFTER_DROP_TABLE:
255
253
    observeAfterDropTable((AfterDropTableEventData &)data);
260
258
    break;
261
259
    
262
260
  case BEFORE_INSERT_RECORD:
263
 
     result = observeBeforeInsertRecord((BeforeInsertRecordEventData &)data);
 
261
    observeBeforeInsertRecord((BeforeInsertRecordEventData &)data);
264
262
    break;
265
263
    
266
264
  case AFTER_INSERT_RECORD:
268
266
    break;     
269
267
       
270
268
  case BEFORE_UPDATE_RECORD:
271
 
    result = observeBeforeUpdateRecord((BeforeUpdateRecordEventData &)data);
 
269
    observeBeforeUpdateRecord((BeforeUpdateRecordEventData &)data);
272
270
    break;
273
271
             
274
272
  case AFTER_UPDATE_RECORD:
276
274
    break;     
277
275
    
278
276
  case BEFORE_DELETE_RECORD:
279
 
    result = observeBeforeDeleteRecord((BeforeDeleteRecordEventData &)data);
 
277
    observeBeforeDeleteRecord((BeforeDeleteRecordEventData &)data);
280
278
    break;
281
279
 
282
280
  case AFTER_DELETE_RECORD: