Mark some QofLogModules as potentially unused

- __attribute__((unused)) for C
- [[maybe_unused]] for cpp
This commit is contained in:
Richard Cohen 2023-02-04 14:23:36 +00:00
parent 9446ae7fb7
commit 4e25bbfc43
8 changed files with 8 additions and 8 deletions

View File

@ -93,7 +93,7 @@ static unsigned int periods[] =
};
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = GNC_MOD_GUI;
__attribute__((unused)) static QofLogModule log_module = GNC_MOD_GUI;
/** Prototypes **********************************************************/

View File

@ -37,7 +37,7 @@
#define WINDOW_AUTOCLEAR_CM_CLASS "window-autoclear"
static QofLogModule log_module = GNC_MOD_GUI;
__attribute__((unused)) static QofLogModule log_module = GNC_MOD_GUI;
/** STRUCTS *********************************************************/
struct _AutoClearWindow

View File

@ -45,7 +45,7 @@
namespace bl = boost::locale;
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = GNC_MOD_GUI;
[[maybe_unused]] static QofLogModule log_module = GNC_MOD_GUI;
namespace Gnucash {

View File

@ -32,7 +32,7 @@
#include "dialog-ab-select-imexporter.h"
#include <dialog-utils.h>
static QofLogModule log_module = G_LOG_DOMAIN;
__attribute__((unused)) static QofLogModule log_module = G_LOG_DOMAIN;
struct _GncABSelectImExDlg
{

View File

@ -51,7 +51,7 @@
#define AMOUNTS_TABLE "budget_amounts"
#define AMOUNTS_TABLE_VERSION 1
static QofLogModule log_module = G_LOG_DOMAIN;
[[maybe_unused]] static QofLogModule log_module = G_LOG_DOMAIN;
#define BUDGET_MAX_NAME_LEN 2048
#define BUDGET_MAX_DESCRIPTION_LEN 2048

View File

@ -44,7 +44,7 @@
#include "splint-defs.h"
#endif
static QofLogModule log_module = G_LOG_DOMAIN;
[[maybe_unused]] static QofLogModule log_module = G_LOG_DOMAIN;
static gpointer get_quote_source_name (gpointer pObject);
static void set_quote_source_name (gpointer pObject, gpointer pValue);

View File

@ -45,7 +45,7 @@
#define _GNC_MOD_NAME GNC_ID_ORDER
static QofLogModule log_module = G_LOG_DOMAIN;
[[maybe_unused]] static QofLogModule log_module = G_LOG_DOMAIN;
#define TABLE_NAME "orders"
#define TABLE_VERSION 1

View File

@ -46,7 +46,7 @@
#include "sixtp-dom-parsers.h"
static const QofLogModule log_module = G_LOG_DOMAIN;
[[maybe_unused]] static const QofLogModule log_module = G_LOG_DOMAIN;
const gchar* transaction_version_string = "2.0.0";
static void