mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Decrease compiler warnings by removing unused variables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18799 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f6bf61feb5
commit
44b63315df
@ -223,7 +223,6 @@ xml_session_begin(QofBackend *be_start, QofSession *session,
|
|||||||
gboolean ignore_lock, gboolean create_if_nonexistent)
|
gboolean ignore_lock, gboolean create_if_nonexistent)
|
||||||
{
|
{
|
||||||
FileBackend *be = (FileBackend*) be_start;
|
FileBackend *be = (FileBackend*) be_start;
|
||||||
gchar* resolved_path;
|
|
||||||
|
|
||||||
ENTER (" ");
|
ENTER (" ");
|
||||||
|
|
||||||
|
@ -83,7 +83,6 @@ xmlNodePtr
|
|||||||
gnc_schedXaction_dom_tree_create(SchedXaction *sx)
|
gnc_schedXaction_dom_tree_create(SchedXaction *sx)
|
||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
xmlNodePtr fsNode;
|
|
||||||
GDate *date;
|
GDate *date;
|
||||||
gint instCount;
|
gint instCount;
|
||||||
const GUID *templ_acc_guid;
|
const GUID *templ_acc_guid;
|
||||||
|
@ -288,7 +288,6 @@ add_template_transaction_local( sixtp_gdv2 *data,
|
|||||||
gnc_template_xaction_data *txd )
|
gnc_template_xaction_data *txd )
|
||||||
{
|
{
|
||||||
GList *n;
|
GList *n;
|
||||||
Account *tmpAcct;
|
|
||||||
Account *acctRoot = NULL;
|
Account *acctRoot = NULL;
|
||||||
QofBook *book;
|
QofBook *book;
|
||||||
|
|
||||||
|
@ -157,7 +157,6 @@ gnc_schedxaction_set_property (GObject *object,
|
|||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
SchedXaction *sx;
|
SchedXaction *sx;
|
||||||
GDate* date;
|
|
||||||
|
|
||||||
g_return_if_fail(GNC_IS_SCHEDXACTION(object));
|
g_return_if_fail(GNC_IS_SCHEDXACTION(object));
|
||||||
|
|
||||||
|
@ -703,7 +703,6 @@ xaccTransScrubImbalance (Transaction *trans, Account *root,
|
|||||||
{
|
{
|
||||||
gnc_monetary *imbal_mon = imbalance_commod->data;
|
gnc_monetary *imbal_mon = imbalance_commod->data;
|
||||||
gnc_commodity *commodity;
|
gnc_commodity *commodity;
|
||||||
gnc_numeric convrate;
|
|
||||||
gnc_numeric old_amount, new_amount;
|
gnc_numeric old_amount, new_amount;
|
||||||
gnc_numeric old_value, new_value, val_imbalance;
|
gnc_numeric old_value, new_value, val_imbalance;
|
||||||
GList *splits;
|
GList *splits;
|
||||||
|
@ -328,7 +328,6 @@ gnc_transaction_set_property(GObject* object,
|
|||||||
GParamSpec* pspec)
|
GParamSpec* pspec)
|
||||||
{
|
{
|
||||||
Transaction* tx;
|
Transaction* tx;
|
||||||
Timespec* ts;
|
|
||||||
|
|
||||||
g_return_if_fail(GNC_IS_TRANSACTION(object));
|
g_return_if_fail(GNC_IS_TRANSACTION(object));
|
||||||
|
|
||||||
|
@ -684,7 +684,6 @@ gnc_commodity_set_property (GObject *object,
|
|||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
gnc_commodity *commodity;
|
gnc_commodity *commodity;
|
||||||
gnc_numeric *number;
|
|
||||||
|
|
||||||
g_return_if_fail(GNC_IS_COMMODITY(object));
|
g_return_if_fail(GNC_IS_COMMODITY(object));
|
||||||
|
|
||||||
@ -819,7 +818,6 @@ gnc_commodity_new(QofBook *book, const char * fullname,
|
|||||||
const char * cusip, int fraction)
|
const char * cusip, int fraction)
|
||||||
{
|
{
|
||||||
gnc_commodity * retval = g_object_new(GNC_TYPE_COMMODITY, NULL);
|
gnc_commodity * retval = g_object_new(GNC_TYPE_COMMODITY, NULL);
|
||||||
gnc_commodity_table *table;
|
|
||||||
|
|
||||||
qof_instance_init_data (&retval->inst, GNC_ID_COMMODITY, book);
|
qof_instance_init_data (&retval->inst, GNC_ID_COMMODITY, book);
|
||||||
gnc_commodity_begin_edit(retval);
|
gnc_commodity_begin_edit(retval);
|
||||||
@ -1360,7 +1358,6 @@ gnc_commodity_set_quote_tz(gnc_commodity *cm, const char *tz)
|
|||||||
void
|
void
|
||||||
gnc_commodity_increment_usage_count(gnc_commodity *cm)
|
gnc_commodity_increment_usage_count(gnc_commodity *cm)
|
||||||
{
|
{
|
||||||
const char *str;
|
|
||||||
CommodityPrivate* priv;
|
CommodityPrivate* priv;
|
||||||
|
|
||||||
ENTER("(cm=%p)", cm);
|
ENTER("(cm=%p)", cm);
|
||||||
@ -1396,7 +1393,6 @@ gnc_commodity_increment_usage_count(gnc_commodity *cm)
|
|||||||
void
|
void
|
||||||
gnc_commodity_decrement_usage_count(gnc_commodity *cm)
|
gnc_commodity_decrement_usage_count(gnc_commodity *cm)
|
||||||
{
|
{
|
||||||
const char *str;
|
|
||||||
CommodityPrivate* priv;
|
CommodityPrivate* priv;
|
||||||
|
|
||||||
ENTER("(cm=%p)", cm);
|
ENTER("(cm=%p)", cm);
|
||||||
|
@ -127,11 +127,7 @@ check_path_return_if_valid(gchar *path)
|
|||||||
char *
|
char *
|
||||||
xaccResolveFilePath (const char * filefrag)
|
xaccResolveFilePath (const char * filefrag)
|
||||||
{
|
{
|
||||||
char pathbuf[PATH_MAX];
|
|
||||||
/* pathGenerator gens[4];*/
|
|
||||||
char *filefrag_dup;
|
|
||||||
int namelen;
|
int namelen;
|
||||||
int i;
|
|
||||||
gchar *fullpath = NULL, *tmp_path = NULL;
|
gchar *fullpath = NULL, *tmp_path = NULL;
|
||||||
|
|
||||||
/* seriously invalid */
|
/* seriously invalid */
|
||||||
|
@ -937,7 +937,6 @@ qof_begin_edit (QofInstance *inst)
|
|||||||
gboolean qof_commit_edit (QofInstance *inst)
|
gboolean qof_commit_edit (QofInstance *inst)
|
||||||
{
|
{
|
||||||
QofInstancePrivate *priv;
|
QofInstancePrivate *priv;
|
||||||
QofBackend * be;
|
|
||||||
|
|
||||||
if (!inst) return FALSE;
|
if (!inst) return FALSE;
|
||||||
|
|
||||||
@ -948,7 +947,7 @@ gboolean qof_commit_edit (QofInstance *inst)
|
|||||||
#if 0
|
#if 0
|
||||||
if ((0 == priv->editlevel) && priv->dirty)
|
if ((0 == priv->editlevel) && priv->dirty)
|
||||||
{
|
{
|
||||||
be = qof_book_get_backend(priv->book);
|
QofBackend * be = qof_book_get_backend(priv->book);
|
||||||
if (be && qof_backend_commit_exists(be))
|
if (be && qof_backend_commit_exists(be))
|
||||||
{
|
{
|
||||||
qof_backend_run_commit(be, inst);
|
qof_backend_run_commit(be, inst);
|
||||||
|
@ -42,7 +42,6 @@ qof_utf8_substr_nocase (const gchar *haystack, const gchar *needle)
|
|||||||
gchar *haystack_casefold, *haystack_normalized;
|
gchar *haystack_casefold, *haystack_normalized;
|
||||||
gchar *needle_casefold, *needle_normalized;
|
gchar *needle_casefold, *needle_normalized;
|
||||||
gchar *p;
|
gchar *p;
|
||||||
gint offset;
|
|
||||||
|
|
||||||
g_return_val_if_fail (haystack && needle, FALSE);
|
g_return_val_if_fail (haystack && needle, FALSE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user