Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct withProtectedClose {
- ~withProtectedClose() {
- // Do some cleanup here...
- }
- };
- void test() {
- withProtectedClose close;
- // Do some work before closing
- }
- test.cpp: In function `void test()':
- test.cpp:28: warning: unused variable 'close'
- struct __attribute__ ((__unused__)) withProtectedClose
- withProtectedClose close;
- (close);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement