[C++] Define build_capture_proxy as static

Message ID 699abb8f-167c-aeee-ac63-a46a0a148d42@oracle.com
State New
Headers show
Series
  • [C++] Define build_capture_proxy as static
Related show

Commit Message

Paolo Carlini Feb. 26, 2018, 10:22 a.m.
Hi,

today noticed this straightforward nit trivial enough for this stage?

Thanks, Paolo.

/////////////////
2018-02-26  Paolo Carlini  <paolo.carlini@oracle.com>

	* lambda.c (build_capture_proxy): Define static.
	* cp-tree.h (build_capture_proxy): Remove.

Comments

Jason Merrill Feb. 26, 2018, 2:09 p.m. | #1
OK.

On Mon, Feb 26, 2018 at 5:22 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,

>

> today noticed this straightforward nit trivial enough for this stage?

>

> Thanks, Paolo.

>

> /////////////////

>

Patch

Index: cp-tree.h
===================================================================
--- cp-tree.h	(revision 257983)
+++ cp-tree.h	(working copy)
@@ -6890,7 +6890,6 @@  extern tree lambda_function			(tree);
 extern void apply_deduced_return_type           (tree, tree);
 extern tree add_capture                         (tree, tree, tree, bool, bool);
 extern tree add_default_capture                 (tree, tree, tree);
-extern tree build_capture_proxy			(tree, tree);
 extern void insert_capture_proxy		(tree);
 extern void insert_pending_capture_proxies	(void);
 extern bool is_capture_proxy			(tree);
Index: lambda.c
===================================================================
--- lambda.c	(revision 257983)
+++ lambda.c	(working copy)
@@ -388,7 +388,7 @@  lambda_proxy_type (tree ref)
    inside the operator(), build a placeholder var for future lookups and
    debugging.  */
 
-tree
+static tree
 build_capture_proxy (tree member, tree init)
 {
   tree var, object, fn, closure, name, lam, type;