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
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
Unknown Object (File)
Tue, Jan 7, 4:16 PM
Unknown Object (File)
Sun, Jan 5, 7:32 PM
Unknown Object (File)
Mon, Dec 30, 1:36 PM
Unknown Object (File)
Nov 18 2024, 3:08 PM
Unknown Object (File)
Nov 15 2024, 6:10 AM

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
Branch
DeliveryBrokerTest-warnings-fix
Lint
No Lint Coverage
Unit
No Test Coverage