Fix unused function result warnings on Linux for usages of fread in the C++ .stl importer
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
| source/blender/io/stl/importer/stl_import.cc | ||
|---|---|---|
| 60 | I don't quite understand this logic. If this fread fails, why is the file considered to be ASCII? | |
| source/blender/io/stl/importer/stl_import_binary_reader.cc | ||
| 37 | This should also print the actual error from the OS. Now there is no way for the reader of the message to understand what's wrong or how to fix it. | |
| source/blender/io/stl/importer/stl_import.cc | ||
|---|---|---|
| 62 | Could also output the error here if the fread fails | |
| source/blender/io/stl/importer/stl_import.cc | ||
|---|---|---|
| 62 | That would be good, yes. And probably also abort the import, as I don't think such errors should go unnoticed. | |