https://bugs.llvm.org/show_bug.cgi?id=49349
Bug ID: 49349
Summary: [OpenCL] incorrect strict-prototypes warnings
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangb...@nondot.org
Reporter: marco.antogn...@arm.com
CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org
This code
void foo();
results in the following warning under -Wstrict-prototypes:
warning: this function declaration is not a prototype [-Wstrict-prototypes]
https://godbolt.org/z/zvfjGG
This is incorrect according to the OpenCL specification:
https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_C.html#restrictions
If a list of parameters in a function declaration is empty, the function takes
no arguments. This is due to the above restriction on variadic functions.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs