Skip to content

Commit

Permalink
Merge pull request #2071 from lslusarczyk/compilation_fixes_for_sles
Browse files Browse the repository at this point in the history
[common] fixed some compilation warnings
  • Loading branch information
pbalcer authored Oct 4, 2024
2 parents 7907998 + 97a22aa commit 7b4bc76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions source/common/umf_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ using provider_unique_handle_t =
return UMF_RESULT_ERROR_NOT_SUPPORTED; \
}

DEFINE_CHECK_OP(get_ipc_handle_size);
DEFINE_CHECK_OP(get_ipc_handle);
DEFINE_CHECK_OP(put_ipc_handle);
DEFINE_CHECK_OP(open_ipc_handle);
DEFINE_CHECK_OP(close_ipc_handle);
DEFINE_CHECK_OP(get_ipc_handle_size)
DEFINE_CHECK_OP(get_ipc_handle)
DEFINE_CHECK_OP(put_ipc_handle)
DEFINE_CHECK_OP(open_ipc_handle)
DEFINE_CHECK_OP(close_ipc_handle)

#define UMF_ASSIGN_OP(ops, type, func, default_return) \
ops.func = [](void *obj, auto... args) { \
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/cts_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
result = subprocess.Popen([args.test_command, '--gtest_brief=1', # nosec B603
f'--devices_count={args.devices_count}',
f'--platforms_count={args.platforms_count}'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)

pat = re.compile(r'\[( )*FAILED( )*\]')
output_list = []
Expand Down
2 changes: 1 addition & 1 deletion test/layers/validation/fixtures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct valAllDevicesTest : valPlatformTest {

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

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

0 comments on commit 7b4bc76

Please sign in to comment.