View | Details | Raw Unified | Return to bug 1148
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:
(-)a/src/network/utils/ipv6-address.cc (-1 / +6 lines)
 Lines 125-131    Link Here 
125
  unsigned char* endp = 0;
125
  unsigned char* endp = 0;
126
  unsigned char* colonp = 0;
126
  unsigned char* colonp = 0;
127
  const char* xdigits = 0;
127
  const char* xdigits = 0;
128
#if 0
128
  const char* curtok = 0;
129
  const char* curtok = 0;
130
#endif
129
  int ch = 0;
131
  int ch = 0;
130
  int seen_xdigits = 0;
132
  int seen_xdigits = 0;
131
  unsigned int val = 0;
133
  unsigned int val = 0;
 Lines 141-148    Link Here 
141
          return (0);
143
          return (0);
142
        }
144
        }
143
    }
145
    }
146
#if 0
144
  curtok = address;
147
  curtok = address;
145
148
#endif
146
  while ((ch = *address++) != '\0')
149
  while ((ch = *address++) != '\0')
147
    {
150
    {
148
      const char *pch = 0;
151
      const char *pch = 0;
 Lines 165-171    Link Here 
165
        }
168
        }
166
      if (ch == ':')
169
      if (ch == ':')
167
        {
170
        {
171
#if 0
168
          curtok = address;
172
          curtok = address;
173
#endif
169
174
170
          if (!seen_xdigits)
175
          if (!seen_xdigits)
171
            {
176
            {

Return to bug 1148