Skip to content

Commit 7e90200

Browse files
committed
Fix some compiler warnings (unused function parameters)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 8bff1e6 commit 7e90200

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

dict/dawg.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,20 @@ class Dawg {
183183
/// of the given unichar_id.
184184
virtual void unichar_id_to_patterns(UNICHAR_ID unichar_id,
185185
const UNICHARSET &unicharset,
186-
GenericVector<UNICHAR_ID> *vec) const {};
186+
GenericVector<UNICHAR_ID> *vec) const {
187+
(void)unichar_id;
188+
(void)unicharset;
189+
(void)vec;
190+
}
187191

188192
/// Returns the given EDGE_REF if the EDGE_RECORD that it points to has
189193
/// a self loop and the given unichar_id matches the unichar_id stored in the
190194
/// EDGE_RECORD, returns NO_EDGE otherwise.
191195
virtual EDGE_REF pattern_loop_edge(
192196
EDGE_REF edge_ref, UNICHAR_ID unichar_id, bool word_end) const {
197+
(void)edge_ref;
198+
(void)unichar_id;
199+
(void)word_end;
193200
return false;
194201
}
195202

dict/dict.h

+1
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ class Dict {
374374
double def_probability_in_context(
375375
const char* lang, const char* context, int context_bytes,
376376
const char* character, int character_bytes) {
377+
(void) lang;
377378
(void) context;
378379
(void) context_bytes;
379380
(void) character;

viewer/scrollview.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SVEventHandler {
8989

9090
// Gets called by the SV Window. Does nothing on default, overwrite this
9191
// to implement the desired behaviour
92-
virtual void Notify(const SVEvent* sve) { }
92+
virtual void Notify(const SVEvent* sve) { (void)sve; }
9393
};
9494

9595
// The ScrollView class provides the expernal API to the scrollviewer process.

0 commit comments

Comments
 (0)