Git Product home page Git Product logo

Comments (2)

mewmew avatar mewmew commented on August 16, 2024

While here, I might as well post a warning that was encountered when compiling vgelib/command.cpp. Of course, this is less critical to fix, but fixing warnings for the default build makes it easier to spot real errors.

[ 70%] Building CXX object CMakeFiles/VGELib.dir/vgelib/command.cpp.o
/home/u/Desktop/VGE/cpp/vgelib/command.cpp: In member function ‘void vge::Queue::submit(vge::Command*, vge::SubmitInfo**, size_t, vk::PipelineStageFlags, vge::SubmitInfo*&)’:
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:52:32: warning: ignoring return value of ‘vk::Result vk::Device::resetFences(uint32_t, const vk::Fence*, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
   52 |  _dev->get_device().resetFences(1, &(cmd->_fence), _dev->get_dispatch());
      |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
                 from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:88681:49: note: declared here
88681 |   VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetFences( uint32_t fenceCount, const VULKAN_HPP_NAMESPACE::Fence* pFences, Dispatch const & d  ) const VULKAN_HPP_NOEXCEPT
      |                                                 ^~~~~~
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:53:15: warning: ignoring return value of ‘vk::Result vk::Queue::submit(uint32_t, const vk::SubmitInfo*, vk::Fence, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
   53 |  _queue.submit(1, &si, cmd->_fence, _dev->get_dispatch());
      |  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
                 from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:92248:49: note: declared here
92248 |   VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::submit( uint32_t submitCount, const VULKAN_HPP_NAMESPACE::SubmitInfo* pSubmits, VULKAN_HPP_NAMESPACE::Fence fence, Dispatch const & d  ) const VULKAN_HPP_NOEXCEPT
      |                                                 ^~~~~
/home/u/Desktop/VGE/cpp/vgelib/command.cpp: In member function ‘virtual void vge::Command::Dispose()’:
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:63:35: warning: ignoring return value of ‘vk::Result vk::Device::waitForFences(uint32_t, const vk::Fence*, vk::Bool32, uint64_t, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int; vk::Bool32 = unsigned int; uint64_t = long unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
   63 |   _dev->get_device().waitForFences(1, &_fence, 1, MaxTimeout, _dev->get_dispatch());
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
                 from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:88893:49: note: declared here
88893 |   VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences( uint32_t fenceCount, const VULKAN_HPP_NAMESPACE::Fence* pFences, VULKAN_HPP_NAMESPACE::Bool32 waitAll, uint64_t timeout, Dispatch const & d  ) const VULKAN_HPP_NOEXCEPT
      |                                                 ^~~~~~
/home/u/Desktop/VGE/cpp/vgelib/command.cpp: In member function ‘void vge::Command::Wait()’:
/home/u/Desktop/VGE/cpp/vgelib/command.cpp:216:34: warning: ignoring return value of ‘vk::Result vk::Device::waitForFences(uint32_t, const vk::Fence*, vk::Bool32, uint64_t, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; uint32_t = unsigned int; vk::Bool32 = unsigned int; uint64_t = long unsigned int]’, declared with attribute ‘nodiscard’ [-Wunused-result]
  216 |  _dev->get_device().waitForFences(1, &_fence, true, MaxTimeout, _dev->get_dispatch());
      |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/u/Desktop/VGE/cpp/vgelib/vgelib.hpp:11,
                 from /home/u/Desktop/VGE/cpp/vgelib/command.cpp:1:
/usr/include/vulkan/vulkan.hpp:88893:49: note: declared here
88893 |   VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences( uint32_t fenceCount, const VULKAN_HPP_NAMESPACE::Fence* pFences, VULKAN_HPP_NAMESPACE::Bool32 waitAll, uint64_t timeout, Dispatch const & d  ) const VULKAN_HPP_NOEXCEPT
      |                                                 ^~~~~~

from vge.

mewmew avatar mewmew commented on August 16, 2024

This seem to be related to the upstream issue KhronosGroup/Vulkan-Hpp#616

from vge.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.