Skip to content

Commit 180ad81

Browse files
author
Patrick White
committed
Comment out unused function parameters to prevent compiler warnings in client code.
1 parent 2cc47b5 commit 180ad81

3 files changed

Lines changed: 25 additions & 25 deletions

File tree

Foundation/include/Poco/Dynamic/VarHolder.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -349,67 +349,67 @@ inline const std::type_info& VarHolder::type() const
349349
throw NotImplementedException("Not implemented: VarHolder::type()");
350350
}
351351

352-
inline void VarHolder::convert(Int8& val) const
352+
inline void VarHolder::convert(Int8& /*val*/) const
353353
{
354354
throw BadCastException("Can not convert to Int8");
355355
}
356356

357357

358-
inline void VarHolder::convert(Int16& val) const
358+
inline void VarHolder::convert(Int16& /*val*/) const
359359
{
360360
throw BadCastException("Can not convert to Int16");
361361
}
362362

363363

364-
inline void VarHolder::convert(Int32& val) const
364+
inline void VarHolder::convert(Int32& /*val*/) const
365365
{
366366
throw BadCastException("Can not convert to Int32");
367367
}
368368

369369

370-
inline void VarHolder::convert(Int64& val) const
370+
inline void VarHolder::convert(Int64& /*val*/) const
371371
{
372372
throw BadCastException("Can not convert to Int64");
373373
}
374374

375375

376-
inline void VarHolder::convert(UInt8& val) const
376+
inline void VarHolder::convert(UInt8& /*val*/) const
377377
{
378378
throw BadCastException("Can not convert to UInt8");
379379
}
380380

381381

382-
inline void VarHolder::convert(UInt16& val) const
382+
inline void VarHolder::convert(UInt16& /*val*/) const
383383
{
384384
throw BadCastException("Can not convert to UInt16");
385385
}
386386

387387

388-
inline void VarHolder::convert(UInt32& val) const
388+
inline void VarHolder::convert(UInt32& /*val*/) const
389389
{
390390
throw BadCastException("Can not convert to UInt32");
391391
}
392392

393393

394-
inline void VarHolder::convert(UInt64& val) const
394+
inline void VarHolder::convert(UInt64& /*val*/) const
395395
{
396396
throw BadCastException("Can not convert to UInt64");
397397
}
398398

399399

400-
inline void VarHolder::convert(DateTime& val) const
400+
inline void VarHolder::convert(DateTime& /*val*/) const
401401
{
402402
throw BadCastException("Can not convert to DateTime");
403403
}
404404

405405

406-
inline void VarHolder::convert(LocalDateTime& val) const
406+
inline void VarHolder::convert(LocalDateTime& /*val*/) const
407407
{
408408
throw BadCastException("Can not convert to LocalDateTime");
409409
}
410410

411411

412-
inline void VarHolder::convert(Timestamp& val) const
412+
inline void VarHolder::convert(Timestamp& /*val*/) const
413413
{
414414
throw BadCastException("Can not convert to Timestamp");
415415
}
@@ -433,31 +433,31 @@ inline void VarHolder::convert(unsigned long& val) const
433433
#endif
434434

435435

436-
inline void VarHolder::convert(bool& val) const
436+
inline void VarHolder::convert(bool& /*val*/) const
437437
{
438438
throw BadCastException("Can not convert to bool");
439439
}
440440

441441

442-
inline void VarHolder::convert(float& val) const
442+
inline void VarHolder::convert(float& /*val*/) const
443443
{
444444
throw BadCastException("Can not convert to float");
445445
}
446446

447447

448-
inline void VarHolder::convert(double& val) const
448+
inline void VarHolder::convert(double& /*val*/) const
449449
{
450450
throw BadCastException("Can not convert to double");
451451
}
452452

453453

454-
inline void VarHolder::convert(char& val) const
454+
inline void VarHolder::convert(char& /*val*/) const
455455
{
456456
throw BadCastException("Can not convert to char");
457457
}
458458

459459

460-
inline void VarHolder::convert(std::string& val) const
460+
inline void VarHolder::convert(std::string& /*val*/) const
461461
{
462462
throw BadCastException("Can not convert to std::string");
463463
}
@@ -2754,17 +2754,17 @@ class VarHolderImpl<DateTime>: public VarHolder
27542754
return typeid(DateTime);
27552755
}
27562756

2757-
void convert(Int8& val) const
2757+
void convert(Int8& /*val*/) const
27582758
{
27592759
throw BadCastException();
27602760
}
27612761

2762-
void convert(Int16& val) const
2762+
void convert(Int16& /*val*/) const
27632763
{
27642764
throw BadCastException();
27652765
}
27662766

2767-
void convert(Int32& val) const
2767+
void convert(Int32& /*val*/) const
27682768
{
27692769
throw BadCastException();
27702770
}

JSON/include/Poco/JSON/Array.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,17 +285,17 @@ class VarHolderImpl<JSON::Array::Ptr>: public VarHolder
285285
s = oss.str();
286286
}
287287

288-
void convert(DateTime& val) const
288+
void convert(DateTime& /*val*/) const
289289
{
290290
throw BadCastException();
291291
}
292292

293-
void convert(LocalDateTime& ldt) const
293+
void convert(LocalDateTime& /*ldt*/) const
294294
{
295295
throw BadCastException();
296296
}
297297

298-
void convert(Timestamp& ts) const
298+
void convert(Timestamp& /*ts*/) const
299299
{
300300
throw BadCastException();
301301
}

JSON/include/Poco/JSON/Object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,17 @@ class VarHolderImpl<JSON::Object::Ptr>: public VarHolder
289289
s = oss.str();
290290
}
291291

292-
void convert(DateTime& val) const
292+
void convert(DateTime& /*val*/) const
293293
{
294294
//TODO: val = _val;
295295
}
296296

297-
void convert(LocalDateTime& ldt) const
297+
void convert(LocalDateTime& /*ldt*/) const
298298
{
299299
//TODO: ldt = _val.timestamp();
300300
}
301301

302-
void convert(Timestamp& ts) const
302+
void convert(Timestamp& /*ts*/) const
303303
{
304304
//TODO: ts = _val.timestamp();
305305
}

0 commit comments

Comments
 (0)