[Wconversion] Suppress warnings in third_party code

As an aside, someone may be interested in fixing this:

FAILED: linux_x64-shared/obj/third_party/Vulkan-Loader/loader/libvulkan.loader.c.o
/usr/local/google/home/shayba/fuchsia/prebuilt/third_party/goma/linux-x64/gomacc  ../../prebuilt/third_party/clang/linux-x64/bin/clang -MD -MF linux_x64-shared/obj/third_party/Vulkan-Loader/loader/libvulkan.loader.c.o.d -DTOOLCHAIN_VERSION=AuHm25kuOn_5pmla8_UrQwqDU3OfmjJIiM-yL2y960UC -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -DVULKAN_NON_CMAKE_BUILD -DSYSCONFDIR=\"/etc\" -DFALLBACK_CONFIG_DIRS=\"/etc/xdg\" -DFALLBACK_DATA_DIRS=\"/usr/local/share:/usr/share\" -DAPI_NAME=\"Vulkan\" -DUSE_UNSAFE_FILE_SEARCH=1 -DHAVE_SECURE_GETENV -I../.. -Ilinux_x64-shared/gen -I../../third_party/Vulkan-Loader/loader/generated -I../../third_party/Vulkan-Loader/loader -I../../third_party/Vulkan-Headers/include -fexperimental-new-pass-manager -fcolor-diagnostics -fcrash-diagnostics-dir=clang-crashreports --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-unknown-linux-gnu -fdebug-compilation-dir . -no-canonical-prefixes -fomit-frame-pointer -fdata-sections -ffunction-sections -O0 -g3 -Wall -Wextra -Wnewline-eof -Wconversion -Wno-unused-parameter -Wno-unknown-warning-option -Wno-sign-conversion -Wno-unknown-warning-option -Wno-c99-designator -Wno-int-in-bool-context -Wno-address-of-packed-member -Wno-range-loop-analysis -Wno-deprecated-declarations -fvisibility=hidden -Werror -Wno-error=deprecated-declarations --sysroot=../../prebuilt/third_party/sysroot/linux --target=x86_64-unknown-linux-gnu -fPIC -Wno-unused-function -std=c11 -c ../../third_party/Vulkan-Loader/loader/loader.c -o linux_x64-shared/obj/third_party/Vulkan-Loader/loader/libvulkan.loader.c.o
../../third_party/Vulkan-Loader/loader/loader.c:2886:58: error: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wimplicit-int-conversion]
                                props->expiration.year = atoi(cur_start);
                                                       ~ ^~~~~~~~~~~~~~~
../../third_party/Vulkan-Loader/loader/loader.c:2889:59: error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
                                props->expiration.month = atoi(cur_start);
                                                        ~ ^~~~~~~~~~~~~~~
../../third_party/Vulkan-Loader/loader/loader.c:2892:57: error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
                                props->expiration.day = atoi(cur_start);
                                                      ~ ^~~~~~~~~~~~~~~
../../third_party/Vulkan-Loader/loader/loader.c:2895:58: error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
                                props->expiration.hour = atoi(cur_start);
                                                       ~ ^~~~~~~~~~~~~~~
../../third_party/Vulkan-Loader/loader/loader.c:2898:60: error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
                                props->expiration.minute = atoi(cur_start);
                                                         ~ ^~~~~~~~~~~~~~~
5 errors generated.

Bug: 58162
Bug: 60140
Change-Id: If5b66b11b17b8203acf78a4cbccb6bdf7b1a6cb6
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/Vulkan-Loader/+/429114
Reviewed-by: Craig Stout <cstout@google.com>
1 file changed
tree: 34ecc1215f24a7956eaa021606220b0e8b0b483d
  1. build-gn/
  2. cmake/
  3. external/
  4. fuchsia/
  5. loader/
  6. scripts/
  7. tests/
  8. .appveyor.yml
  9. .clang-format
  10. .cmake-format.py
  11. .gitattributes
  12. .gitignore
  13. .gn
  14. .travis.yml
  15. BUILD.gn
  16. BUILD.md
  17. CMakeLists.txt
  18. CODE_OF_CONDUCT.md
  19. CONTRIBUTING.md
  20. GOVERNANCE.md
  21. LICENSE.txt
  22. README.fuchsia
  23. README.md
  24. vulkan.symbols.api
README.md

Vulkan Ecosystem Components

This project provides the Khronos official Vulkan ICD desktop loader for Windows, Linux, and MacOS.

CI Build Status

PlatformBuild Status
Linux/MacOSBuild Status
WindowsBuild status

Introduction

Vulkan is an explicit API, enabling direct control over how GPUs actually work. As such, Vulkan supports systems that have multiple GPUs, each running with a different driver, or ICD (Installable Client Driver). Vulkan also supports multiple global contexts (instances, in Vulkan terminology). The ICD loader is a library that is placed between a Vulkan application and any number of Vulkan drivers, in order to support multiple drivers and the instance-level functionality that works across these drivers. Additionally, the loader manages inserting Vulkan layer libraries, such as validation layers, between an application and the drivers.

This repository contains the Vulkan loader that is used for Linux, Windows, MacOS, and iOS. There is also a separate loader, maintained by Google, which is used on Android.

The following components are available in this repository:

Contact Information

Information for Developing or Contributing

Please see the CONTRIBUTING.md file in this repository for more details. Please see the GOVERNANCE.md file in this repository for repository management details.

How to Build and Run

BUILD.md Includes directions for building all components.

Architecture and interface information for the loader is in loader/LoaderAndLayerInterface.md.

Version Tagging Scheme

Updates to the Vulkan-Loader repository which correspond to a new Vulkan specification release are tagged using the following format: v<version> (e.g., v1.1.96).

Note: Marked version releases have undergone thorough testing but do not imply the same quality level as SDK tags. SDK tags follow the sdk-<version>.<patch> format (e.g., sdk-1.1.92.0).

This scheme was adopted following the 1.1.96 Vulkan specification release.

License

This work is released as open source under a Apache-style license from Khronos including a Khronos copyright.

See COPYRIGHT.txt for a full list of licenses used in this repository.

Acknowledgements

While this project has been developed primarily by LunarG, Inc., there are many other companies and individuals making this possible: Valve Corporation, funding project development; Khronos providing oversight and hosting of the project.