From 7e90200d261d0ce4831d8127df1b3a845c38873e Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 12 Nov 2016 17:43:22 +0100 Subject: [PATCH] Fix some compiler warnings (unused function parameters) Signed-off-by: Stefan Weil --- dict/dawg.h | 9 ++++++++- dict/dict.h | 1 + viewer/scrollview.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dict/dawg.h b/dict/dawg.h index b37e771503..f040353118 100644 --- a/dict/dawg.h +++ b/dict/dawg.h @@ -183,13 +183,20 @@ class Dawg { /// of the given unichar_id. virtual void unichar_id_to_patterns(UNICHAR_ID unichar_id, const UNICHARSET &unicharset, - GenericVector *vec) const {}; + GenericVector *vec) const { + (void)unichar_id; + (void)unicharset; + (void)vec; + } /// Returns the given EDGE_REF if the EDGE_RECORD that it points to has /// a self loop and the given unichar_id matches the unichar_id stored in the /// EDGE_RECORD, returns NO_EDGE otherwise. virtual EDGE_REF pattern_loop_edge( EDGE_REF edge_ref, UNICHAR_ID unichar_id, bool word_end) const { + (void)edge_ref; + (void)unichar_id; + (void)word_end; return false; } diff --git a/dict/dict.h b/dict/dict.h index 326f1235d5..1f6806aff6 100644 --- a/dict/dict.h +++ b/dict/dict.h @@ -374,6 +374,7 @@ class Dict { double def_probability_in_context( const char* lang, const char* context, int context_bytes, const char* character, int character_bytes) { + (void) lang; (void) context; (void) context_bytes; (void) character; diff --git a/viewer/scrollview.h b/viewer/scrollview.h index 12fac4e5db..e0341f7f40 100644 --- a/viewer/scrollview.h +++ b/viewer/scrollview.h @@ -89,7 +89,7 @@ class SVEventHandler { // Gets called by the SV Window. Does nothing on default, overwrite this // to implement the desired behaviour - virtual void Notify(const SVEvent* sve) { } + virtual void Notify(const SVEvent* sve) { (void)sve; } }; // The ScrollView class provides the expernal API to the scrollviewer process.