aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/search.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 22:00:05 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 22:00:05 +0100
commit2af7a570fb52a2e8aff02f3a2f39b38dd096d373 (patch)
tree6d5515cf9ba8722cccea34e721a77c80819c49b9 /src/search.cpp
parentbbb22595b1d85290544ed737e6a0b31ddcdf122b (diff)
downloadsciteco-2af7a570fb52a2e8aff02f3a2f39b38dd096d373.tar.gz
remove all unused-attributes for parameters
* compiler does not warn by default: this actually makes sense * so we don't need any unused-attributes * less GCC-extension based * on older GCCs I think -Wunused-parameters was enabled by -Wall we should add -Wno-unused-parameters if that's the case
Diffstat (limited to 'src/search.cpp')
-rw-r--r--src/search.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/search.cpp b/src/search.cpp
index 7562096..ccf0d53 100644
--- a/src/search.cpp
+++ b/src/search.cpp
@@ -405,8 +405,7 @@ StateSearch::do_search(GRegex *re, gint from, gint to, gint &count)
}
void
-StateSearch::process(const gchar *str,
- gint new_chars __attribute__((unused))) throw (Error)
+StateSearch::process(const gchar *str, gint new_chars) throw (Error)
{
static const gint flags = G_REGEX_CASELESS | G_REGEX_MULTILINE |
G_REGEX_DOTALL | G_REGEX_RAW;
@@ -743,7 +742,7 @@ StateReplace::done(const gchar *str) throw (Error)
}
State *
-StateReplace_ignore::done(const gchar *str __attribute__((unused))) throw (Error)
+StateReplace_ignore::done(const gchar *str) throw (Error)
{
return &States::start;
}