Skip to content

Commit

Permalink
Fix some compiler warnings (unused function parameters)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Nov 13, 2016
1 parent 8bff1e6 commit 7e90200
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion dict/dawg.h
Expand Up @@ -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<UNICHAR_ID> *vec) const {};
GenericVector<UNICHAR_ID> *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;
}

Expand Down
1 change: 1 addition & 0 deletions dict/dict.h
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion viewer/scrollview.h
Expand Up @@ -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.
Expand Down

0 comments on commit 7e90200

Please sign in to comment.