summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-06-19 13:30:35 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-06-20 11:50:55 +0200
commitaf7fe117e5bb5ab62a1c4133f665b0b9375e8731 (patch)
tree49b35151bb351206c524ca40b98bc93f97538e17
parentc200b31fb59c0e52de43d948c97b6165d989bc11 (diff)
fwlib: only print warning if the list of dups is not empty
-rw-r--r--cerbero/ide/xcode/fwlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cerbero/ide/xcode/fwlib.py b/cerbero/ide/xcode/fwlib.py
index 889b6b22..85dd689a 100644
--- a/cerbero/ide/xcode/fwlib.py
+++ b/cerbero/ide/xcode/fwlib.py
@@ -151,7 +151,8 @@ class StaticFrameworkLibrary(FrameworkLibrary):
for k,v in syms.iteritems():
if len(v) > 1:
dups[k] = v
- m.warning ("The static library contains duplicated symbols")
+ if dups:
+ m.warning ("The static library contains duplicated symbols")
for k, v in dups.iteritems():
m.message (k) # symbol name
for l in v: