File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -145,17 +145,19 @@ def main():
145
145
print ()
146
146
147
147
so_only = so_symbols .difference (header_symbols )
148
- print ("The following %d symbols are exported in binary, "
149
- "but are not present in public header files:" % len (so_only ))
150
- for s in sorted (so_only ):
151
- print (s )
152
- print ()
148
+ if so_only :
149
+ print ("The following %d symbols are exported in binary, "
150
+ "but are not present in public header files:" % len (so_only ))
151
+ for s in sorted (so_only ):
152
+ print (s )
153
+ print ()
153
154
154
155
header_only = header_symbols .difference (so_symbols )
155
- print ("The following %d symbols are present in public header files, "
156
- "but are not exported in binary:" % len (header_only ))
157
- for s in sorted (header_only ):
158
- print (s )
156
+ if header_only :
157
+ print ("The following %d symbols are present in public header files, "
158
+ "but are not exported in binary:" % len (header_only ))
159
+ for s in sorted (header_only ):
160
+ print (s )
159
161
160
162
161
163
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments