Page MenuHomePhabricator

[services] Tunnelbroker - Fix `DeliveryBrokerTest.cpp` warnings while building by Clang
ClosedPublic

Authored by max on May 2 2022, 6:30 AM.
Tags
None
Referenced Files
F3887654: D3882.diff
Fri, Jan 24, 8:44 AM
Unknown Object (File)
Wed, Jan 15, 8:41 PM
Unknown Object (File)
Wed, Jan 15, 3:47 AM
Unknown Object (File)
Thu, Jan 9, 7:05 PM
Unknown Object (File)
Thu, Jan 9, 6:58 PM
Unknown Object (File)
Tue, Jan 7, 4:21 PM
Unknown Object (File)
Tue, Jan 7, 4:21 PM
Unknown Object (File)
Tue, Jan 7, 4:21 PM

Details

Summary

Fixes build types conversion warnings while building by Clang:

DeliveryBrokerTest.cpp:50:22: non-constant-expression cannot be narrowed from type 'time_t' (aka 'long') to 'uint64_t' (aka 'unsigned long 
long') in initializer list [-Wc++11-narrowing]
[build]       .deliveryTag = std::time(0),
Test Plan

Run yarn test-tunnelbroker-service to build and run the tests.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable