socsvn commit: r256973 - soc2013/mattbw/backend
mattbw at FreeBSD.org
mattbw at FreeBSD.org
Thu Sep 5 21:13:21 UTC 2013
Author: mattbw
Date: Thu Sep 5 21:13:21 2013
New Revision: 256973
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=256973
Log:
Yet another gcc/clang catch-22.
Yay.
Modified:
soc2013/mattbw/backend/pkgutils.c
Modified: soc2013/mattbw/backend/pkgutils.c
==============================================================================
--- soc2013/mattbw/backend/pkgutils.c Thu Sep 5 21:10:17 2013 (r256972)
+++ soc2013/mattbw/backend/pkgutils.c Thu Sep 5 21:13:21 2013 (r256973)
@@ -205,6 +205,14 @@
assert(pkg != NULL);
+ /*
+ * clang complains about this redundant assignment, but
+ * gcc complains if it doesn't exist.
+ */
+#ifndef __clang__
+ repo = "";
+#endif /* __clang */
+
switch (pkg_type(pkg)) {
case PKG_OLD_FILE:
case PKG_FILE:
More information about the svn-soc-all
mailing list