Avoid harmless signed/unsigned warning in g++ 5.4 wxGTK build

Change GTKGetEntryTextLength() to return a signed value, as it's always
either assigned to or compared with the signed variables anyhow.

This avoids a couple of -Wsign-compare warnings when building with g++
5.4 from Ubuntu 16.04.
This commit is contained in:
Vadim Zeitlin
2018-10-11 01:05:43 +02:00
parent ea71ea1259
commit 8e1c4e9238
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ protected:
// Override the base class method to use GtkEntry IM context.
virtual int GTKIMFilterKeypress(GdkEventKey* event) const;
static unsigned int GTKGetEntryTextLength(GtkEntry* entry);
static int GTKGetEntryTextLength(GtkEntry* entry);
private:
// implement this to return the associated GtkEntry or another widget