Avoid some warnings for unused parameters
This commit is contained in:
parent
8c8b68d027
commit
4b11fdbb84
|
@ -156,6 +156,7 @@ static CommonTask * _common_task_new(BrowserPluginHelper * helper,
|
||||||
char buf[256];
|
char buf[256];
|
||||||
GtkWidget * vbox;
|
GtkWidget * vbox;
|
||||||
GtkWidget * widget;
|
GtkWidget * widget;
|
||||||
|
(void) helper;
|
||||||
|
|
||||||
if((task = object_new(sizeof(*task))) == NULL)
|
if((task = object_new(sizeof(*task))) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -765,6 +765,8 @@ static gboolean _add_is_binary(char const * type)
|
||||||
|
|
||||||
static void _add_on_callback(CVS * cvs, CommonTask * task, int ret)
|
static void _add_on_callback(CVS * cvs, CommonTask * task, int ret)
|
||||||
{
|
{
|
||||||
|
(void) task;
|
||||||
|
|
||||||
if(ret == 0)
|
if(ret == 0)
|
||||||
/* refresh upon success */
|
/* refresh upon success */
|
||||||
cvs->helper->refresh(cvs->helper->browser);
|
cvs->helper->refresh(cvs->helper->browser);
|
||||||
|
|
|
@ -462,6 +462,8 @@ static void _git_on_blame(gpointer data)
|
||||||
|
|
||||||
static void _blame_on_callback(Git * git, CommonTask * task, int ret)
|
static void _blame_on_callback(Git * git, CommonTask * task, int ret)
|
||||||
{
|
{
|
||||||
|
(void) git;
|
||||||
|
|
||||||
if(ret == 128)
|
if(ret == 128)
|
||||||
_common_task_message(task, GTK_MESSAGE_ERROR,
|
_common_task_message(task, GTK_MESSAGE_ERROR,
|
||||||
_("This file is not managed by Git"), 1);
|
_("This file is not managed by Git"), 1);
|
||||||
|
@ -493,6 +495,8 @@ static void _git_on_clone(gpointer data)
|
||||||
|
|
||||||
static void _clone_on_callback(Git * git, CommonTask * task, int ret)
|
static void _clone_on_callback(Git * git, CommonTask * task, int ret)
|
||||||
{
|
{
|
||||||
|
(void) git;
|
||||||
|
|
||||||
if(ret == 0)
|
if(ret == 0)
|
||||||
_common_task_message(task, GTK_MESSAGE_INFO,
|
_common_task_message(task, GTK_MESSAGE_INFO,
|
||||||
_("Repository cloned successfully"), 0);
|
_("Repository cloned successfully"), 0);
|
||||||
|
@ -527,6 +531,8 @@ static void _git_on_commit(gpointer data)
|
||||||
|
|
||||||
static void _commit_on_callback(Git * git, CommonTask * task, int ret)
|
static void _commit_on_callback(Git * git, CommonTask * task, int ret)
|
||||||
{
|
{
|
||||||
|
(void) git;
|
||||||
|
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
_common_task_message(task, GTK_MESSAGE_ERROR,
|
_common_task_message(task, GTK_MESSAGE_ERROR,
|
||||||
_("Could not commit the file or directory"), 1);
|
_("Could not commit the file or directory"), 1);
|
||||||
|
@ -558,6 +564,7 @@ static void _git_on_diff(gpointer data)
|
||||||
|
|
||||||
static void _diff_on_callback(Git * git, CommonTask * task, int ret)
|
static void _diff_on_callback(Git * git, CommonTask * task, int ret)
|
||||||
{
|
{
|
||||||
|
(void) git;
|
||||||
#ifdef notyet
|
#ifdef notyet
|
||||||
GtkTextBuffer * tbuf;
|
GtkTextBuffer * tbuf;
|
||||||
#endif
|
#endif
|
||||||
|
@ -632,6 +639,7 @@ static void _git_on_log(gpointer data)
|
||||||
static void _log_on_callback(Git * git, CommonTask * task, int ret)
|
static void _log_on_callback(Git * git, CommonTask * task, int ret)
|
||||||
{
|
{
|
||||||
#ifdef notyet /* XXX race condition */
|
#ifdef notyet /* XXX race condition */
|
||||||
|
(void) git;
|
||||||
GtkTextBuffer * tbuf;
|
GtkTextBuffer * tbuf;
|
||||||
|
|
||||||
if(ret != 0)
|
if(ret != 0)
|
||||||
|
@ -640,6 +648,10 @@ static void _log_on_callback(Git * git, CommonTask * task, int ret)
|
||||||
if(gtk_text_buffer_get_char_count(tbuf) == 0)
|
if(gtk_text_buffer_get_char_count(tbuf) == 0)
|
||||||
_common_task_message(task, GTK_MESSAGE_ERROR,
|
_common_task_message(task, GTK_MESSAGE_ERROR,
|
||||||
_("This file is not managed by Git"), 1);
|
_("This file is not managed by Git"), 1);
|
||||||
|
#else
|
||||||
|
(void) git;
|
||||||
|
(void) task;
|
||||||
|
(void) ret;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user