Skip to content

Commit 97a22aa

Browse files
committed
[common] Fix some compilation warnings
Remove excessive semicolons. Use python3.6 friendly alias instead of text param.
1 parent 7aba70b commit 97a22aa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

source/common/umf_helpers.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ using provider_unique_handle_t =
5656
return UMF_RESULT_ERROR_NOT_SUPPORTED; \
5757
}
5858

59-
DEFINE_CHECK_OP(get_ipc_handle_size);
60-
DEFINE_CHECK_OP(get_ipc_handle);
61-
DEFINE_CHECK_OP(put_ipc_handle);
62-
DEFINE_CHECK_OP(open_ipc_handle);
63-
DEFINE_CHECK_OP(close_ipc_handle);
59+
DEFINE_CHECK_OP(get_ipc_handle_size)
60+
DEFINE_CHECK_OP(get_ipc_handle)
61+
DEFINE_CHECK_OP(put_ipc_handle)
62+
DEFINE_CHECK_OP(open_ipc_handle)
63+
DEFINE_CHECK_OP(close_ipc_handle)
6464

6565
#define UMF_ASSIGN_OP(ops, type, func, default_return) \
6666
ops.func = [](void *obj, auto... args) { \

test/conformance/cts_exe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
result = subprocess.Popen([args.test_command, '--gtest_brief=1', # nosec B603
2929
f'--devices_count={args.devices_count}',
3030
f'--platforms_count={args.platforms_count}'],
31-
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
31+
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
3232

3333
pat = re.compile(r'\[( )*FAILED( )*\]')
3434
output_list = []

test/layers/validation/fixtures.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct valAllDevicesTest : valPlatformTest {
128128

129129
// We use this to avoid segfaults in the mock adapter when we're doing stuff
130130
// like double releases in the leak detection tests.
131-
inline ur_result_t genericSuccessCallback(void *) { return UR_RESULT_SUCCESS; };
131+
inline ur_result_t genericSuccessCallback(void *) { return UR_RESULT_SUCCESS; }
132132

133133
// This returns valid (non-null) handles that we can safely leak.
134134
inline ur_result_t fakeContext_urContextCreate(void *pParams) {

0 commit comments

Comments
 (0)