View | Details | Raw Unified | Return to bug 1147
Collapse All | Expand All

(-)a/src/core/examples/main-callback.cc (-1 / +6 lines)
 Lines 34-39    Link Here 
34
  // invoke cbOne function through callback instance
34
  // invoke cbOne function through callback instance
35
  double retOne;
35
  double retOne;
36
  retOne = one (10.0, 20.0);
36
  retOne = one (10.0, 20.0);
37
  // cast retOne to void, to suppress variable ‘retOne’ set but
38
  // not used compiler warning
39
  (void) retOne; 
37
40
38
  // return type: int
41
  // return type: int
39
  // first arg type: double
42
  // first arg type: double
 Lines 46-52    Link Here 
46
  // invoke MyCb::cbTwo through callback instance
49
  // invoke MyCb::cbTwo through callback instance
47
  int retTwo;
50
  int retTwo;
48
  retTwo = two (10.0);
51
  retTwo = two (10.0);
49
52
  // cast retTwo to void, to suppress variable ‘retTwo’ set but
53
  // not used compiler warning
54
  (void) retTwo;
50
  two = MakeNullCallback<int, double> ();
55
  two = MakeNullCallback<int, double> ();
51
  // invoking a null callback is just like
56
  // invoking a null callback is just like
52
  // invoking a null function pointer:
57
  // invoking a null function pointer:

Return to bug 1147