Closed emaste closed 11 months ago
(at 50f1e8cd428eaa168bfd7bd1656b0cad8053a03a)
Found two more via Clang static analyzer just now:
Bug reported by the clang static analyzer.
Description: Value stored to 'stream_code' is never read
File: /usr/home/emaste/src/gitup/gitup.c
Line: 2339
Bug reported by the clang static analyzer.
Description: Value stored to 'temp' is never read
File: /usr/home/emaste/src/gitup/gitup.c
Line: 3686
Also two of another type
Bug reported by the clang static analyzer.
Description: Although the value stored to 'object' is used in the enclosing expression, the value is never actually read from 'object'
File: /usr/home/emaste/src/gitup/gitup.c
Line: 1140
Bug reported by the clang static analyzer.
Description: Although the value stored to 'entry' is used in the enclosing expression, the value is never actually read from 'entry'
File: /usr/home/emaste/src/gitup/gitup.c
Line: 4103
fixes clang 16 build and run test ok at main-n263928-005aa1743b42
commit https://cgit.freebsd.org/ports/commit/?id=deb4a46338300fb1f2145af29484b48bd26d69d4
Thanks
I installed llvm 16 and ran its scan-build/scan-view and the remaining four errors are all related to FreeBSD's tree.h code and (unless I'm missing something super subtle) they all look like false positives.