Commit 3454192
committed
libvisual/lv_bmp.c: Address warning -Wunused-result
Symptom was:
> lv_bmp.c: In function 'visual_bitmap_load':
> lv_bmp.c:286:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 286 | fread (magic, 2, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:294:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 294 | fread (&bf_size, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:301:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 301 | fread (&bf_bits, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:305:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 305 | fread (&bi_size, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:310:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 310 | fread (&bi_width, 2, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:311:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 311 | fread (&bi_height, 2, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:319:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 319 | fread (&bi_bitcount, 2, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:324:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 324 | fread (&bi_width, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:325:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 325 | fread (&bi_height, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:333:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 333 | fread (&bi_bitcount, 2, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:337:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 337 | fread (&bi_compression, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lv_bmp.c:344:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
> 344 | fread (&bi_clrused, 4, 1, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~1 parent b3c78cf commit 3454192
1 file changed
Lines changed: 36 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
294 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
301 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
302 | 308 | | |
303 | 309 | | |
304 | 310 | | |
305 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
309 | 317 | | |
310 | | - | |
311 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
312 | 324 | | |
313 | 325 | | |
314 | 326 | | |
315 | 327 | | |
316 | 328 | | |
317 | 329 | | |
318 | 330 | | |
319 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
320 | 334 | | |
321 | 335 | | |
322 | 336 | | |
323 | 337 | | |
324 | | - | |
325 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
326 | 344 | | |
327 | 345 | | |
328 | 346 | | |
329 | 347 | | |
330 | 348 | | |
331 | 349 | | |
332 | 350 | | |
333 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
334 | 354 | | |
335 | 355 | | |
336 | 356 | | |
337 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
338 | 360 | | |
339 | 361 | | |
340 | 362 | | |
341 | 363 | | |
342 | 364 | | |
343 | 365 | | |
344 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
345 | 369 | | |
346 | 370 | | |
347 | 371 | | |
| |||
0 commit comments