Skip to content

Commit 4a0a7c7

Browse files
maksimsabsys-ce-bb
authored andcommitted
Fix warning with variadic macro (#2249)
The following warning used to appear: SPIRVInstruction.h:3745:23: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro _SPIRV_OP(ReadClockKHR) Original commit: KhronosGroup/SPIRV-LLVM-Translator@8155991
1 parent fca0712 commit 4a0a7c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVInstruction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3834,7 +3834,7 @@ template <Op OC> class SPIRVReadClockKHRInstBase : public SPIRVUnaryInst<OC> {
38343834
" 64-bit type or two element vector of 32-bit type\n");
38353835
}
38363836
};
3837-
#define _SPIRV_OP(x, ...) typedef SPIRVReadClockKHRInstBase<Op##x> SPIRV##x;
3837+
#define _SPIRV_OP(x) typedef SPIRVReadClockKHRInstBase<Op##x> SPIRV##x;
38383838
_SPIRV_OP(ReadClockKHR)
38393839
#undef _SPIRV_OP
38403840

0 commit comments

Comments
 (0)