These files have the QofLogModule defined but never used

In two minds on this, comment the line out or add macro to stop it
showing up as defined but never used, chose the latter.
This commit is contained in:
Robert Fewell 2017-07-23 12:41:15 +01:00 committed by John Ralls
parent b264a060bf
commit 64675b64eb
5 changed files with 16 additions and 6 deletions

View File

@ -57,9 +57,10 @@
#include "guile-util.h"
#include "guile-mappings.h"
/* This static indicates the debugging module this .o belongs to. */
static QofLogModule log_module = GNC_MOD_GUILE;
#define UNUSED_VAR __attribute__ ((unused))
/* This static indicates the debugging module this .o belongs to. */
static QofLogModule UNUSED_VAR log_module = GNC_MOD_GUILE;
struct _setters
{

View File

@ -126,7 +126,9 @@ struct _invoice_select_window
GncOwner owner_def;
};
static QofLogModule log_module = G_LOG_DOMAIN; //G_LOG_BUSINESS;
#define UNUSED_VAR __attribute__ ((unused))
static QofLogModule UNUSED_VAR log_module = G_LOG_DOMAIN; //G_LOG_BUSINESS;
/** This data structure does double duty. It is used to maintain
* information for the "New Invoice" dialog, and it is also used to

View File

@ -39,8 +39,10 @@
#define IMPORT_FULL_PATH "FullPath"
#define IMPORT_ACCOUNT "Account"
#define UNUSED_VAR __attribute__ ((unused))
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = G_LOG_DOMAIN;
static QofLogModule UNUSED_VAR log_module = G_LOG_DOMAIN;
/**************************************************
* account_imap_destroy

View File

@ -75,7 +75,10 @@ void gnc_import_gui_type_cb (GtkWidget *widget, gpointer data);
// utils
static gchar *gnc_input_dialog (GtkWidget *parent, const gchar *title, const gchar *msg, const gchar *default_input);
static void gnc_info2_dialog (GtkWidget *parent, const gchar *title, const gchar *msg);
static QofLogModule log_module = G_LOG_DOMAIN; //G_LOG_BUSINESS;
#define UNUSED_VAR __attribute__ ((unused))
static QofLogModule UNUSED_VAR log_module = G_LOG_DOMAIN; //G_LOG_BUSINESS;
BillImportGui *
gnc_plugin_bi_import_showGUI(void)

View File

@ -59,8 +59,10 @@
/** Static Globals *****************************************************/
#define UNUSED_VAR __attribute__ ((unused))
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = GNC_MOD_REGISTER;
static QofLogModule UNUSED_VAR log_module = GNC_MOD_REGISTER;
/** Implementation *****************************************************/