Bug 202581 - Fix security/obfsclient build with clang 3.7.0
Summary: Fix security/obfsclient build with clang 3.7.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Xin LI
Depends on:
Blocks: 201377
  Show dependency treegraph
Reported: 2015-08-22 22:50 UTC by Dimitry Andric
Modified: 2015-08-26 00:24 UTC (History)
2 users (show)

See Also:
fk: maintainer-feedback+

Fix pessimizing moves in security/obfsclient (2.00 KB, patch)
2015-08-22 22:50 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer 2015-08-22 22:50:23 UTC
Created attachment 160230 [details]
Fix pessimizing moves in security/obfsclient

Comment 1 Dimitry Andric freebsd_committer 2015-08-22 22:53:22 UTC
During the exp-run in bug 201377, it was found that security/obfsclient gives errors with a recent clang 3.7.0 snapshot:


This is because the program calls std::move() in a few situations where it is detrimental to performance, because moving a temporary object prevents copy elision.  The attached patch removes those std::move() calls.
Comment 2 Fabian Keil 2015-08-25 10:46:00 UTC
Thanks a lot for the report and the patch which I hereby approve.
Comment 3 Xin LI freebsd_committer 2015-08-26 00:23:52 UTC
Committed, thanks!
Comment 4 commit-hook freebsd_committer 2015-08-26 00:24:12 UTC
A commit references this bug:

Author: delphij
Date: Wed Aug 26 00:23:40 UTC 2015
New revision: 395327
URL: https://svnweb.freebsd.org/changeset/ports/395327

  Fix security/obfsclient build with clang 3.7.0.

  PR:		ports/202581
  Submitted by:	dim