Skip to content

Commit

Permalink
Fixes some GCC reported warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bfierz committed May 14, 2021
1 parent bb28551 commit 8453da8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/examples/opengl/gridcube/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
#include "../common/imguiapp.h"

// Force the use of the NVIDIA GPU in an Optimus system
#ifdef VCL_ABI_WINAPI
extern "C"
{
_declspec(dllexport) unsigned int NvOptimusEnablement = 0x00000001;
}
#endif

bool InputUInt(const char* label, unsigned int* v, int step, int step_fast, ImGuiInputTextFlags flags)
{
Expand Down Expand Up @@ -173,7 +175,7 @@ class DynamicBoundingGridExample final : public ImGuiApplication
auto cbuf_transform = cmd_queue->requestPerFrameConstantBuffer<TransformData>();
cbuf_transform->ModelMatrix = M;
cbuf_transform->ViewProjectionMatrix = VP;

cmd_queue->setConstantBuffer(0, std::move(cbuf_transform));

// Compute the grid paramters
Expand All @@ -192,7 +194,7 @@ class DynamicBoundingGridExample final : public ImGuiApplication
cbuf_config->Resolution = (float)resolution;

cmd_queue->setConstantBuffer(1, std::move(cbuf_config));

// Render the grid
// 3 Line-loops with 4 points, N+1 replications of the loops (N tiles)
cmd_queue->setPrimitiveType(Vcl::Graphics::Runtime::PrimitiveType::LinelistAdj);
Expand Down
2 changes: 2 additions & 0 deletions src/examples/rtti/simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
class AdditionalBase
{
VCL_DECLARE_ROOT_METAOBJECT(AdditionalBase)
public:
virtual ~AdditionalBase() = default;

private:
std::string _additionalName{ "NoValue" };
Expand Down
2 changes: 0 additions & 2 deletions src/examples/simd/meshvertexnormals/liver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#pragma once

float liver_points[] =
{
11.3805f, 6.10116f, 11.6117f,
Expand Down
2 changes: 0 additions & 2 deletions src/examples/simd/meshvertexnormals/pitbull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* OUT O OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#pragma once

float pitbull_core_points[] =
{
54.843079f, -45.140915f, 5.875645f,
Expand Down

0 comments on commit 8453da8

Please sign in to comment.