[gnome-commander/ConvertWarningsToErrors] fix warning: no previous declaration for ...
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] fix warning: no previous declaration for ...
- Date: Wed, 19 Apr 2017 20:06:31 +0000 (UTC)
commit 8632e4626d67cd364efdbfb64a9a8dc263aec4a2
Author: Andreas Henriksson <andreas fatal se>
Date: Tue Apr 18 23:33:30 2017 +0200
fix warning: no previous declaration for ...
searcher.cc: In function ‘void update_progress_indicator(GViewerSearcher*, offset_type)’:
searcher.cc:304:6: error: no previous declaration for ‘void update_progress_indicator(GViewerSearcher*,
offset_type)’ [-Werror=missing-declarations]
void update_progress_indicator (GViewerSearcher *src, offset_type pos)
^~~~~~~~~~~~~~~~~~~~~~~~~
src/intviewer/searcher.cc | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/intviewer/searcher.cc b/src/intviewer/searcher.cc
index 4213f36..7d23d62 100644
--- a/src/intviewer/searcher.cc
+++ b/src/intviewer/searcher.cc
@@ -301,7 +301,7 @@ void g_viewer_searcher_setup_new_hex_search(GViewerSearcher *srchr,
}
-void update_progress_indicator (GViewerSearcher *src, offset_type pos)
+static void update_progress_indicator (GViewerSearcher *src, offset_type pos)
{
gdouble d = (pos*1000.0) / src->priv->max_offset;
@@ -312,13 +312,13 @@ void update_progress_indicator (GViewerSearcher *src, offset_type pos)
}
-gboolean check_abort_request (GViewerSearcher *src)
+static gboolean check_abort_request (GViewerSearcher *src)
{
return g_atomic_int_get (&src->priv->abort_indicator)!=0;
}
-gboolean search_hex_forward (GViewerSearcher *src)
+static gboolean search_hex_forward (GViewerSearcher *src)
{
offset_type m, n, j;
int i;
@@ -368,7 +368,7 @@ gboolean search_hex_forward (GViewerSearcher *src)
}
-gboolean search_hex_backward (GViewerSearcher *src)
+static gboolean search_hex_backward (GViewerSearcher *src)
{
offset_type m, n, j;
int i;
@@ -422,7 +422,7 @@ gboolean search_hex_backward (GViewerSearcher *src)
}
-gboolean search_text_forward (GViewerSearcher *src)
+static gboolean search_text_forward (GViewerSearcher *src)
{
offset_type m, n, j;
int i;
@@ -486,7 +486,7 @@ gboolean search_text_forward (GViewerSearcher *src)
}
-gboolean search_text_backward (GViewerSearcher *src)
+static gboolean search_text_backward (GViewerSearcher *src)
{
offset_type m, n, j;
int i;
@@ -552,7 +552,7 @@ gboolean search_text_backward (GViewerSearcher *src)
}
-gpointer search_func (gpointer user_data)
+static gpointer search_func (gpointer user_data)
{
g_return_val_if_fail (G_IS_VIEWERSEARCHER(user_data), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]