3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-20 15:40:37 +00:00
z3/src
davedets c6d514a707 Fix instance of "flexible array member". (#9883)
This is another PR towards the goal of getting a clean build with clang,
using the compiler options used in building clang-tidy.

In https://github.com/Z3Prover/z3/pull/9800, we changed the build flags
to eliminate a warning for zero-length arrays. In that PR, I missed this
one: there was one instance of m_arr[] instead of m_arr[0]. In the
clang-tidy build, that gives warnings like:
```
/Users/daviddetlefs/llvm-project/build_dbg/_deps/z3-src/src/model/func_interp.h:43:12: warning: flexible array members are a C99 feature [-Wc99-extensions]
```

The PR fixes this, making it a zero-length array, the idiom used in all
the other similar cases. I also added the compiler flag that produced
this warning, so we can notice such changes in the future.
2026-06-19 17:36:18 -07:00
..
ackermannization Fix off-by-one vulnerabilities: use range-based for on goals; cache loop bound 2026-02-19 22:37:22 +00:00
api Bump markdown-it from 14.1.0 to 14.2.0 in /src/api/js (#9881) 2026-06-19 17:36:16 -07:00
ast Update seq_rewriter.cpp 2026-06-19 17:36:18 -07:00
cmd_context refactor solver to include settable stats 2026-06-07 14:17:38 -07:00
math Lcube (#9858) 2026-06-19 17:36:07 -07:00
model Fix instance of "flexible array member". (#9883) 2026-06-19 17:36:18 -07:00
muz Add rlimit support in fixedpoint parameters (#9798) 2026-06-10 15:13:05 -07:00
nlsat making try-for tactic exception resilient on cancelation 2026-04-26 15:58:24 -07:00
opt Fixes necessary to compile z3 included in clang-tidy via FetchContents. (#9768) 2026-06-08 19:44:01 -07:00
params prepare for lambda unfolding in ho-matcher and selectively enable ho matching 2026-05-22 13:25:01 -07:00
parsers Fix off-by-one column after comment lines in SMT2 scanner (#9808) 2026-06-10 06:49:31 -07:00
qe Cleanup thanks to Copilot (#9709) 2026-06-04 10:46:33 -07:00
sat refactor solver to include settable stats 2026-06-07 14:17:38 -07:00
shell Fixes necessary to compile z3 included in clang-tidy via FetchContents. (#9768) 2026-06-08 19:44:01 -07:00
smt Eliminate unused private fields and local variables. (#9875) 2026-06-19 17:36:13 -07:00
solver Eliminate unused private fields and local variables. (#9875) 2026-06-19 17:36:13 -07:00
tactic Fix reference to recfun::util in lia2card_tactic.cpp 2026-06-19 17:36:18 -07:00
test Smart constructors for regex ranges: canonical form at construction time (#9814) 2026-06-19 17:36:17 -07:00
util Remove a few unneeded constructors (#9879) 2026-06-19 17:36:14 -07:00
CMakeLists.txt git bindings v1.0 2026-02-18 21:02:25 -08:00