Skip to content

Commit

Permalink
fix some warnings generated with Wall
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Yates <[email protected]>
  • Loading branch information
bmyates committed Jun 17, 2021
1 parent bb89202 commit 3214255
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Level zero loader changelog

## v1.3.7
* Fixed build warnings generated when `-Wall` is enabled

## v1.3.6
* 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.
* New Loader API to retrieve version information of loader and layers: `zelLoaderGetVersions`
Expand All @@ -23,4 +26,4 @@ Note: Level Zero Specification API did not change.
* Update loader library to 1.1.0 to indicate addition of tracing layer implementation and associated APIs
* 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
* 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
* Deprecated a tracing implementation layer descriptor enum value due to incorrect name and added a replacement.
* Deprecated a tracing implementation layer descriptor enum value due to incorrect name and added a replacement.
2 changes: 1 addition & 1 deletion samples/zello_world/zello_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void print_loader_versions(){
versions = new zel_component_version_t[size];
zelLoaderGetVersions(&size, versions);

for(int i = 0; i < size; i++){
for(size_t i = 0; i < size; i++){
std::cout << "Version " << i << std::endl;
std::cout << "Name: " << versions[i].component_name << std::endl;
std::cout << "Major: " << versions[i].component_lib_version.major << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion source/drivers/null/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ target_include_directories(${TARGET_NAME}
)

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

0 comments on commit 3214255

Please sign in to comment.