From 9ec5697d3b19f7eab55902335fcbe2608dffb0fa Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Tue, 27 Feb 2018 18:31:00 +0100 Subject: [PATCH] Fix warnings in simpledisplay & nanovega blocking dub builds --- nanovega.d | 2 +- simpledisplay.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nanovega.d b/nanovega.d index 0d3a7c6..66d5511 100644 --- a/nanovega.d +++ b/nanovega.d @@ -9213,7 +9213,7 @@ public int fonsAddFont (FONScontext* stash, const(char)[] name, const(char)[] pa } catch (Exception e) { // oops; sorry } - return FONS_INVALID; + //return FONS_INVALID; } // first try direct path diff --git a/simpledisplay.d b/simpledisplay.d index 3b2b641..19eeec2 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -1134,9 +1134,9 @@ TrueColorImage trueColorImageFromNativeHandle(NativeWindowHandle handle, int wid // I just need to BitBlt that shit... BUT WAIT IT IS ALREADY IN A DIB!!!!!!! } else static assert(0); - } return null; + } } /++