Summary: | comms/telldus-core: Fix build with Clang 6 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Tobias Kortkamp <tobik> | ||||
Component: | Individual Port(s) | Assignee: | Tobias Kortkamp <tobik> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | johan | ||||
Priority: | --- | Flags: | johan:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/telldus-core-2.1.2_5.log | ||||||
Attachments: |
|
Description
Tobias Kortkamp
![]() ![]() Created attachment 196519 [details]
comms__telldus-core.diff
Thanks for checking this out, I've seen the alert mails but have not had time to look into it. I have no objections, if that works (and is backwards compatible) then I guess it's good :) (In reply to Johan Ström from comment #2) Thank you. It will do for now to make it work like before, but you should definitely report this to upstream if you get a chance. A commit references this bug: Author: tobik Date: Mon Aug 27 05:31:21 UTC 2018 New revision: 478176 URL: https://svnweb.freebsd.org/changeset/ports/478176 Log: comms/telldus-core: Fix build with Clang 6 common/EventHandler_unix.cpp:83:24: error: non-constant-expression cannot be narrowed from type 'unsigned long long' to 'time_t' (aka 'int') in initializer list [-Wc++11-narrowing] timespec abstime = { now.tv_sec + (abstime_ns_large / 1000000000), abstime_ns_large % 1000000000 }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/telldus-core-2.1.2_5.log PR: 230882 Submitted by: tobik Approved by: Johan Str?m <johan@stromnet.se> (maintainer) Changes: head/comms/telldus-core/Makefile Upstream is unfortunately more or less dead/unmaintained, so very small chance of fixing problems there (as evident by multitude of patches we already have in the port). |