Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Ubuntu 22.10 has
The C compiler identification is GNU 12.2.0
The CXX compiler identification is GNU 12.2.0
Jlib compile error:
00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:674:24: error: pointer may be used after ‘int fclose(FILE*)’ [-Werror=use-after-free]
00:49:23 674 | if (in) fclose(in);
00:49:23 | ~~~~~^~~
00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:668:15: note: call to ‘int fclose(FILE*)’ here
00:49:23 668 | fclose(in);
00:49:23 | ~~~~~^~~
00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:674:24: error: pointer may be used after ‘int fclose(FILE*)’ [-Werror=use-after-free]
00:49:23 674 | if (in) fclose(in);
00:49:23 | ~~~~~^~~
00:49:23 /var/lib/jenkins/workspace/CE-Candidate-8.10.2-kinetic/CE/ubuntu-22-10/HPCC-Platform/system/jlib/jmisc.cpp:668:15: note: call to ‘int fclose(FILE*)’ here
00:49:23 668 | fclose(in);
00:49:23 | ~~~~~^~~
00:49:24 cc1plus: all warnings being treated as errors
00:49:24 make[2]: *** [system/jlib/CMakeFiles/jlib.dir/build.make:426: system/jlib/CMakeFiles/jlib.dir/jmisc.cpp.o] Error 1