I would like to add a warning for lambdas that explicitly capture variables that they don't use. e.g. int i = 3; auto f = [&i] { return 5; }; This is similar to Wunused-private-field. I propose the flag -Wunused-lambda-capture. Comments? -- Malcolm Parsons