| Commit | Date | |
|---|---|---|
|
[r13004]
by
mikeaubury
Use the checked SPRINTFn macros for the sprintf calls GCC flags as overflowing -Wformat-overflow drops from 159 to 14, and a full build from 882 to 737 The SPRINTFn macros in incl/a4gl_libaubit4gl.h were already the house style - A4GL_sprintf(__FILE__, __LINE__, dest, sizeof(dest), fmt, ...) which formats into a scratch buffer of the destination's size and raises an The yacc grammars were the bulk of them, and are the clearest case: %union { char str[1024]; ... } sizeof($<str>$) is the union member's 1024, so the macro checks these properly Where the warned code lives in a build product the fix is in the source it is Four sites are deliberately left alone: - compilers/xgen/x.yacc (5): bin/xgen is a bootstrap tool built before One trade-off worth recording: A4GL_sprintf is not declared with |
2026-08-25 12:59:07 | Tree |
|
[r13003]
by
mikeaubury
Silence the two noisiest warning categories: sign-compare loops and unused-but-set A full build goes from 2066 warnings to 882. The two categories dealt with here -Wunused-but-set-variable (303, across 66 files) is switched off in -Wsign-compare (1106) is NOT switched off, because the category is not uniformly 880 for (a=0; a<x.x_len; a++) counter is int, length is u_int Only the first group is meaningless: the counter starts at zero, so the signed The other 226 are left visible on purpose. The assertions are the reason: A4GL_assertion(u->variable_id >= ...->variables.variables_len, "Invalid VARIABLE ID"); a negative variable_id converts to a huge unsigned here, so the assertion fires Two of the casts change behaviour, both for the better: lib/libform/form_generic/formwrite2.c:439 With len==0 the old code computed 0-1 as unsigned, so an empty list ran the What is left: format-overflow 159 (sprintf in the yacc grammars, worth a proper |
2026-08-25 12:29:22 | Tree |
|
[r13002]
by
mikeaubury
Fix clean-build breakage from r13001, two latent pointer bugs, and ~700 warnings r13001 broke "make cleanall && make": having every generated API .c include - lib/bin/dlmagic, lib/bin/dlmagic_c.awk: drop the api_header include again. Two of these are real bugs rather than cosmetics, both dormant until libcurl - lib/libsql/odbc/sql.c: SQLLEN was #define'd to int, but the bundled Warning cleanup - a full build goes from 2722 to 2022 warnings on the same - compilers/xgen/x.yacc: the generated .xo.c/.xi.c loops compared an int Still outstanding, all in hand-written code and needing a decision per site: |
2026-08-25 11:42:39 | Tree |
|
[r13001]
by
mikeaubury
Fix gzFile/FILE* type error in curl.c and clean up the dlmagic API generator Reported on Ubuntu 26.04: GCC 15 makes -Wincompatible-pointer-types an - incl/a4gl_curl.h: the local file in struct fcurl_data was a FILE *, but The generated API_*_self.c files (dlmagic -S, used by the static-link - lib/bin/dlmagic, lib/bin/dlmagic_c.awk: self mode now includes the Also fixes parallel builds of the API layer, which never worked: dlmagic All 26 generated API files (11 dlopen + 11 self, plus 4 in compilers/4glc) |
2026-08-25 11:12:00 | Tree |
| 2026-08-20 15:32:04 | Tree | |
|
[r12999]
by
mikeaubury
Fix fresh-checkout build: rpcgen headers are needed without XDR r12998 gated the RPCGEN_* recipes in common/dataio/Makefile on No rule to make target '../../common/dataio/form_x.h', An existing working copy still built, because form_x.h was already - common/dataio/Makefile: the RPCGEN_* recipes are unconditional again; Verified on a clean 'svn export' of the tree: ./configure && make now |
2026-08-15 14:48:05 | Tree |
| 2026-08-15 13:14:04 | Tree | |
|
[r12997]
by
mikeaubury
Build: drop AH_BOTTOM fallbacks, use standard autoheader semantics r12996 added an AH_BOTTOM block defining every legacy symbol to 0 when - RTLD_LAZY, RTLD_NOW, DL_LAZY, DL_NOW are dlfcn.h system macros, not Also: three AC_DEFINEs in m4/aubit_sql.m4 passed an empty description, so configure.ac 831 -> 412 lines; the header template 771 -> 360 lines with 116 Verified: fresh checkout + ./configure && make builds clean and produces a |
2026-08-12 10:02:29 | Tree |
|
[r12996]
by
mikeaubury
Build: fix clean-checkout build; add UI_JSON to default targets A fresh checkout could not be built. Four independent gaps: 1. incl/a4gl_incl_config.h was never generated. The 2026 configure.ac autoheader alone is not sufficient: it emits templates only for probed Also restored two checks the rewrite lost: pdflib.h (without it Verified: all 137 symbols of the previously-used header are present and 2. lib/libui/ui_json/readJsonForm.c was compiled into libUI_JSON.so but 3. libUI_JSON.so was not part of the default build: ui_json hung off 4. node/baseProgs/runProgram.sh lacked svn:executable, so a clean checkout Verified end to end: fresh checkout + ./configure && make builds clean, 61 |
2026-08-12 08:47:18 | Tree |
|
[r12995]
by
mikeaubury
Angular web UI: JSON pipeline server, Angular app, e2e test suite - lib/libui/ui_json/readJsonForm.c: compiled into libUI_JSON.so but never |
2026-08-11 17:34:50 | Tree |