Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix pedantic warnings in <nv/target> on IBM xlc. #273

Merged
merged 1 commit into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/nv/detail/__target_macros
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
# define _NV_TARGET_DISPATCH(...) _NV_BLOCK_EXPAND(_NV_DISPATCH_N_ARY(_NV_TARGET_DISPATCH_HANDLE, __VA_ARGS__))

// NV_IF_TARGET supports a false statement provided as a variadic macro
# define NV_IF_TARGET(cond, t, ...) _NV_BLOCK_EXPAND(_NV_TARGET_IF(cond, t, __VA_ARGS__))
# define NV_IF_TARGET(cond, ...) _NV_BLOCK_EXPAND(_NV_TARGET_IF(cond, __VA_ARGS__))
# define NV_IF_ELSE_TARGET(cond, t, f) _NV_BLOCK_EXPAND(_NV_TARGET_IF(cond, t, f))
# define NV_DISPATCH_TARGET(...) _NV_TARGET_DISPATCH(__VA_ARGS__)

Expand Down
5 changes: 3 additions & 2 deletions include/nv/target
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
# define _NV_BITSET_ATTRIBUTE
#endif

#if (defined(__cplusplus) && __cplusplus >= 201103L) || \
(defined(_MSC_VER) && _MSVC_LANG >= 201103L)
#if (!defined(__ibmxl__)) && \
((defined(__cplusplus) && __cplusplus >= 201103L) || \
(defined(_MSC_VER) && _MSVC_LANG >= 201103L))
# define _NV_TARGET_CPP11
#endif

Expand Down