Commit fc9d4d9
committed
Revert fix for arduino#37 and always show "multiple libraries warning" again
This reverts commit 2058479:
Adding info in LibraryResolutionResult about whether selected
library comes from a platform or from outside. If the former and
there are duplicates, no warning is printed
Additionally, the librariesInSomePlatform function and
librariesInPlatforms variable in resolveLibrary are removed, since these
are now unused.
The original suggestion in arduino#37 was that if a platform library overrides
a builtin library, no warning would be needed. The implementation,
however, was hiding the warning whenever a platform library was
overriding any other library, including a user library, which seems
harmful (This was [reported on the devlist][1]).
This commit reverts the exception added for arduino#37, making the warning
appear unconditionally again. In a future commit, a better solution
for arduino#37 will be added.
[1]: https://groups.google.com/a/arduino.cc/d/msg/developers/1kkIqIsbuzU/0-abwr1gBQAJ
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>1 parent f2d04ca commit fc9d4d9
File tree
4 files changed
+5
-51
lines changed- src/arduino.cc/builder
- test
- types
4 files changed
+5
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
| |||
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
152 | | - | |
153 | | - | |
| 150 | + | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 162 | | |
177 | 163 | | |
178 | 164 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
Lines changed: 0 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 76 | | |
81 | 77 | | |
82 | 78 | | |
| |||
112 | 108 | | |
113 | 109 | | |
114 | 110 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
| |||
153 | 146 | | |
154 | 147 | | |
155 | 148 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 149 | | |
162 | 150 | | |
163 | 151 | | |
| |||
196 | 184 | | |
197 | 185 | | |
198 | 186 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 187 | | |
205 | 188 | | |
206 | 189 | | |
| |||
238 | 221 | | |
239 | 222 | | |
240 | 223 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 224 | | |
246 | 225 | | |
247 | 226 | | |
| |||
280 | 259 | | |
281 | 260 | | |
282 | 261 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 262 | | |
288 | 263 | | |
289 | 264 | | |
| |||
322 | 297 | | |
323 | 298 | | |
324 | 299 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 300 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
0 commit comments