Skip to content

Commit 3214255

Browse files
committed
fix some warnings generated with Wall
Signed-off-by: Brandon Yates <[email protected]>
1 parent bb89202 commit 3214255

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Level zero loader changelog
22

3+
## v1.3.7
4+
* Fixed build warnings generated when `-Wall` is enabled
5+
36
## v1.3.6
47
* New Tracing Layer APIs to support tracing Level Zero core APIs introduced after the 1.0 Specification. A change of design was needed to allow extension to new APIs without breaking backwards compatibility of original tracing APIs. The original tracing layer APIs will continue to be supported for 1.0 core APIs, but users are encouraged to switch to the new tracing layer APIs.
58
* New Loader API to retrieve version information of loader and layers: `zelLoaderGetVersions`
@@ -23,4 +26,4 @@ Note: Level Zero Specification API did not change.
2326
* Update loader library to 1.1.0 to indicate addition of tracing layer implementation and associated APIs
2427
* Fixed bug when reading windows environment variables set by process before zeInit call. Before variables were not read correctly resulting in layers not being enabled as expected
2528
* Fixed bug in loader when using multiple drivers and a driver API returns an error code. Previously loader would incorrectly translate output handles from failed API calls
26-
* Deprecated a tracing implementation layer descriptor enum value due to incorrect name and added a replacement.
29+
* Deprecated a tracing implementation layer descriptor enum value due to incorrect name and added a replacement.

samples/zello_world/zello_world.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void print_loader_versions(){
1919
versions = new zel_component_version_t[size];
2020
zelLoaderGetVersions(&size, versions);
2121

22-
for(int i = 0; i < size; i++){
22+
for(size_t i = 0; i < size; i++){
2323
std::cout << "Version " << i << std::endl;
2424
std::cout << "Name: " << versions[i].component_name << std::endl;
2525
std::cout << "Major: " << versions[i].component_lib_version.major << std::endl;

source/drivers/null/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ target_include_directories(${TARGET_NAME}
2020
)
2121

2222
if(UNIX)
23-
set(GCC_COVERAGE_COMPILE_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
23+
set(GCC_COVERAGE_COMPILE_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-aliasing")
2424
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
2525
endif()

0 commit comments

Comments
 (0)