https://bugs.llvm.org/show_bug.cgi?id=43482

            Bug ID: 43482
           Summary: warning: unused variable - for
                    __attribute__(cleanup(...))
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

static void cleanup(int *p) {}
int main(void) {
  __attribute__((cleanup(cleanup))) int var;
}

cleanup.c:3:41: warning: unused variable 'var' [-Wunused-variable]

gcc-9.2.1-1.fc30.x86_64 does not produce the warning.

Bugreport by: David Gilbert

FAIL: b259e7b6488208d11aee8a4b116d90a8914e115b = 2019-09-27
FAIL: clang-8.0.0-1.fc30.x86_64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to