[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH]: eliminate gcc -Wall compiler warning

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2003-11-28 19:53:07 CET

Well, the patch speaks for itself. My only doubt is that the expression my
not have been meant to be evaluated as I put the parens.

Log:
[[[
Eliminate gcc -Wall compiler warning

* subversion/libsvn_fs/fs.c (bdb_write_config): add parens to
  avoid gcc -Wall ambiguity warning

]]]

Index: subversion/libsvn_fs/fs.c
===================================================================
--- subversion/libsvn_fs/fs.c (revision 7865)
+++ subversion/libsvn_fs/fs.c (working copy)
@@ -493,9 +493,9 @@
                                     dbconfig_file_name);
         }
  
- if ((DB_VERSION_MAJOR == dbconfig_options[i].bdb_major
- && DB_VERSION_MINOR >= dbconfig_options[i].bdb_minor
- || DB_VERSION_MAJOR > dbconfig_options[i].bdb_major)
+ if (((DB_VERSION_MAJOR == dbconfig_options[i].bdb_major
+ && DB_VERSION_MINOR >= dbconfig_options[i].bdb_minor)
+ || (DB_VERSION_MAJOR > dbconfig_options[i].bdb_major))
           && value != NULL && strcmp (value, "0") != 0)
         choice = dbconfig_options[i].active;
       else

-- 
HoHoHo! Seid Ihr auch alle schön brav gewesen?
GMX Weihnachts-Special: Die 1. Adresse für Weihnachts-
männer und -frauen! http://www.gmx.net/de/cgi/specialmail
+++ GMX - die erste Adresse für Mail, Message, More! +++
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 28 19:53:52 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.