From 2af7a570fb52a2e8aff02f3a2f39b38dd096d373 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 18 Mar 2013 22:00:05 +0100 Subject: 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 --- src/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/search.cpp') 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; } -- cgit v1.2.3