Re: [C++ Patch] Define build_capture_proxy as static

2018-02-26 Thread Jason Merrill
OK.

On Mon, Feb 26, 2018 at 5:22 AM, Paolo Carlini  wrote:
> Hi,
>
> today noticed this straightforward nit trivial enough for this stage?
>
> Thanks, Paolo.
>
> /
>


[C++ Patch] Define build_capture_proxy as static

2018-02-26 Thread Paolo Carlini

Hi,

today noticed this straightforward nit trivial enough for this stage?

Thanks, Paolo.

/

2018-02-26  Paolo Carlini  

* lambda.c (build_capture_proxy): Define static.
* cp-tree.h (build_capture_proxy): Remove.
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;