[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] gsoc-2022-chariri-3 94bfed4 19/36: [ftinspect] Elimina
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] gsoc-2022-chariri-3 94bfed4 19/36: [ftinspect] Eliminate compile warnings on GCC. |
Date: |
Wed, 27 Jul 2022 06:32:45 -0400 (EDT) |
branch: gsoc-2022-chariri-3
commit 94bfed42b7200a9f9ed7437158f5f0332370037c
Author: Charlie Jiang <w@chariri.moe>
Commit: Charlie Jiang <w@chariri.moe>
[ftinspect] Eliminate compile warnings on GCC.
* src/ftinspect/engine/stringrenderer.cpp: Fix signed/unsigned comparsion.
* src/ftinspect/rendering/glyphcontinuous.cpp: Add a dummy `default` case.
---
src/ftinspect/engine/stringrenderer.cpp | 2 +-
src/ftinspect/rendering/glyphcontinuous.cpp | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ftinspect/engine/stringrenderer.cpp
b/src/ftinspect/engine/stringrenderer.cpp
index ecc5223..e2dd74c 100644
--- a/src/ftinspect/engine/stringrenderer.cpp
+++ b/src/ftinspect/engine/stringrenderer.cpp
@@ -301,7 +301,7 @@ StringRenderer::prepareLine(int offset,
loadStringGlyphs();
}
- for (int n = offset; n < activeGlyphs_.size();)
+ for (unsigned n = offset; n < activeGlyphs_.size();)
{
auto& ctx = activeGlyphs_[n];
if (repeated_) // if repeated, we must stop when we touch the end of line
diff --git a/src/ftinspect/rendering/glyphcontinuous.cpp
b/src/ftinspect/rendering/glyphcontinuous.cpp
index bbee056..3eb61c6 100644
--- a/src/ftinspect/rendering/glyphcontinuous.cpp
+++ b/src/ftinspect/rendering/glyphcontinuous.cpp
@@ -224,6 +224,7 @@ GlyphContinuous::preprocessGlyph(FT_Glyph* glyphPtr)
}
}
break;
+ default:; // Nothing for M_NORMAL.
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] gsoc-2022-chariri-3 94bfed4 19/36: [ftinspect] Eliminate compile warnings on GCC.,
Werner Lemberg <=