diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-06-19 13:30:35 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-06-20 11:50:55 +0200 |
commit | af7fe117e5bb5ab62a1c4133f665b0b9375e8731 (patch) | |
tree | 49b35151bb351206c524ca40b98bc93f97538e17 | |
parent | c200b31fb59c0e52de43d948c97b6165d989bc11 (diff) |
fwlib: only print warning if the list of dups is not empty
-rw-r--r-- | cerbero/ide/xcode/fwlib.py | 3 |
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: |