diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2017-10-06 20:42:45 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2017-10-06 21:49:13 +0300 |
commit | b49ef29d72bd2975b8b2cc84b1fa6b40aa2edd5f (patch) | |
tree | 0da7fea6c4426a7ca307cb59ed961074c7b2b6e8 /scripts/ld-version.sh | |
parent | 0435605289298a7311f78d02eb6a015cae7dbaf7 (diff) |
Bluetooth: Fix compiler warning with selftest duration calculation
CC net/bluetooth/selftest.o
net/bluetooth/selftest.c: In function ‘bt_selftest_init’:
net/bluetooth/selftest.c:246:3: warning: ‘duration’ may be used uninitialized in this function [-Wmaybe-uninitialized]
snprintf(test_ecdh_buffer, sizeof(test_ecdh_buffer),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"PASS (%llu usecs)\n", duration);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/bluetooth/selftest.c:203:21: note: ‘duration’ was declared here
unsigned long long duration;
^~~~~~~~
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'scripts/ld-version.sh')
0 files changed, 0 insertions, 0 deletions