Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 9 years ago

Language

Compiler

Options

Author

anonymous

almost 9 years ago

$
prog.cc: In function 'int main(int, char**)':
prog.cc:7:10: warning: variable 'capture' set but not used [-Wunused-but-set-variable]
     auto capture = [&x]() { printf("capture function x=%d\n", x); };
          ^~~~~~~
non capture function
Exit Code:
0