]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Sun, 21 Nov 2021 23:32:24 +0000 (15:32 -0800)]
extractMax: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:31:33 +0000 (15:31 -0800)]
neatogen bfs: use C99 bool return types instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:28:10 +0000 (15:28 -0800)]
idealsize: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:26:21 +0000 (15:26 -0800)]
pathscross: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:25:06 +0000 (15:25 -0800)]
conc.c: use C99 bools instead of booleans
Matthew Fernandez [Sun, 21 Nov 2021 23:23:07 +0000 (15:23 -0800)]
noClip; use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:20:20 +0000 (15:20 -0800)]
htmlenv_t.objid_set: use a C99 bool instead of boolean
Matthew Fernandez [Sat, 27 Nov 2021 20:14:12 +0000 (20:14 +0000)]
Merge branch 'smattr/
b7d78258 -59ca-4b36-b34f-
3ba688801700 ' into 'main'
teach the Autotools build system that GTK headers are not part of Graphviz
See merge request graphviz/graphviz!2296
Matthew Fernandez [Sun, 21 Nov 2021 17:52:22 +0000 (09:52 -0800)]
teach the Autotools build system that GTK headers are not part of Graphviz
This is the equivalent of
fb5e2bf574739cc8225683aacfc6833d586a9e77 , but for
Smyrna’s use of GTK. It squashes 27 warnings.
Matthew Fernandez [Sat, 27 Nov 2021 19:14:01 +0000 (19:14 +0000)]
Merge branch 'smattr/
70447D6E -8DE8-42FE-938C-
6623A2094C4D ' into 'main'
tclpkg: remove C++ guards from simple.h
See merge request graphviz/graphviz!2297
Matthew Fernandez [Sun, 21 Nov 2021 18:24:40 +0000 (10:24 -0800)]
tclpkg: remove C++ guards from simple.h
This header is not shipped and not included by anything except C sources.
Moreover these guards gave the incorrect impression this header was usable from
C++. One of its structs contains a field, `final`, that is a C++ keyword, so it
is not possible to use this code from C++.
Matthew Fernandez [Sat, 27 Nov 2021 18:11:28 +0000 (18:11 +0000)]
Merge branch 'smattr/
A2038E24 -6EA2-49E9-9C64-
01EE8748A977 ' into 'main'
smyrna: more dead code removal
See merge request graphviz/graphviz!2298
Matthew Fernandez [Sun, 21 Nov 2021 17:33:22 +0000 (09:33 -0800)]
smyrna renderNodeLabels: remove unused 'nodeSize'
Matthew Fernandez [Sun, 21 Nov 2021 17:33:07 +0000 (09:33 -0800)]
smyrna edge_xdot: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 17:32:43 +0000 (09:32 -0800)]
smyrna renderSmGraph: remove unused 'g' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:30:05 +0000 (09:30 -0800)]
smyrna set_boundaries: remove unused 't' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:28:59 +0000 (09:28 -0800)]
smyrna changetopfishfocus: remove unused 'z' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:27:02 +0000 (09:27 -0800)]
smyrna get_active_frame: remove unused 't' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:26:23 +0000 (09:26 -0800)]
smyrna prepare_topological_fisheye: remove unused 'gg'
Matthew Fernandez [Sun, 21 Nov 2021 17:23:18 +0000 (09:23 -0800)]
smyrna pick_object: replace use of large constant with 'FLT_MAX'
The compiler warns:
selectionfuncs.c: In function 'pick_object':
selectionfuncs.c:114:16: warning: conversion from 'int' to 'float' changes
value from '
999999999 ' to '1.0e+9f' [-Wfloat-conversion]
114 | float dist=
999999999 ;
| ^~~~~~~~~
The usage of `dist` in this function is really that its initial value needs to
be greater than any other value encountered, so `FLT_MAX` serves this purpose
better.
Matthew Fernandez [Sun, 21 Nov 2021 17:21:48 +0000 (09:21 -0800)]
smyrna combineCallback: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 17:12:47 +0000 (09:12 -0800)]
smyrna frmobjectui.c: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 17:10:17 +0000 (09:10 -0800)]
smyrna: remove unused 'on_attrRB0_clicked'
Matthew Fernandez [Sun, 21 Nov 2021 17:09:45 +0000 (09:09 -0800)]
smyrna: remove an unused strcasecmp.h include
The only use of `strcasecmp` in this file was removed in
3fff5a1665b4be68f5dc69c5315b64dd556ce17a .
Matthew Fernandez [Sat, 27 Nov 2021 17:10:32 +0000 (17:10 +0000)]
Merge branch 'smattr/
2BC8555C -71B7-4C94-A426-
C0222D7299D4 ' into 'main'
deploy.py: include Windows artifacts in generated JSON
See merge request graphviz/graphviz!2301
Matthew Fernandez [Tue, 23 Nov 2021 03:17:25 +0000 (19:17 -0800)]
deploy.py: simplify 'checksum' function
Commit
0b31ec29078ecee5b868b42453478f1dd8239d54 modified `checksum` so it only
produced a single checksum, SHA256. Therefore we can simplify the function to
just return that single checksum file instead of defining it as a generator.
Matthew Fernandez [Tue, 23 Nov 2021 03:08:35 +0000 (19:08 -0800)]
deploy.py: include Windows artifacts in generated JSON
This avoids the error prone manual process we have been stepping through for the
last few releases.
Matthew Fernandez [Tue, 23 Nov 2021 02:25:51 +0000 (18:25 -0800)]
deploy.py: outline functionality for deriving the 'format' field of JSON output
This will be used in a future commit to add Windows entries to the JSON data.
Matthew Fernandez [Fri, 26 Nov 2021 18:15:46 +0000 (18:15 +0000)]
Merge branch 'smattr/
054CE618 -2658-48EF-AEDD-
5402FB3AEB53 ' into 'main'
gen_version.py: add a '--output' flag, avoiding the need for encoding hacks
See merge request graphviz/graphviz!2293
Matthew Fernandez [Sat, 20 Nov 2021 17:31:11 +0000 (09:31 -0800)]
use gen_version.py’s '--output' option to avoid redirection, encoding hacks
Matthew Fernandez [Sat, 20 Nov 2021 16:33:02 +0000 (08:33 -0800)]
gen_version.py: add a '--output' flag
This allows the script itself to control text encoding used in the output. A
future commit will use this to avoid awkward juggling of locales and encoding
externally.
Matthew Fernandez [Thu, 25 Nov 2021 17:54:36 +0000 (17:54 +0000)]
Merge branch 'smattr/
788C09F1 -D6B8-4193-B283-
C68FE424A520 ' into 'main'
DEVELOPERS.md: document how to set dynamic loader path on macOS
See merge request graphviz/graphviz!2304
Matthew Fernandez [Thu, 25 Nov 2021 16:54:41 +0000 (08:54 -0800)]
DEVELOPERS.md: document how to set dynamic loader path on macOS
Matthew Fernandez [Thu, 25 Nov 2021 03:59:57 +0000 (03:59 +0000)]
Merge branch 'cross' into 'main'
cmd/dot: don't run dot -c when cross-compiling (CMake edition)
See merge request graphviz/graphviz!2299
Alyssa Ross [Fri, 12 Nov 2021 16:35:05 +0000 (16:35 +0000)]
cmd/dot: don't run dot -c when cross-compiling (CMake edition)
We probably can't execute the binary we've cross compiled.
Matthew Fernandez [Wed, 24 Nov 2021 16:47:40 +0000 (16:47 +0000)]
Merge branch 'smattr/
5D7A95BC -E75A-4C0C-A377-
4C66AD66D428 ' into 'main'
enable -Werror for MinGW CMake jobs
See merge request graphviz/graphviz!2294
Matthew Fernandez [Sat, 20 Nov 2021 16:06:51 +0000 (08:06 -0800)]
.gitlab-ci.yml: remove inaccurate comment
It looks like commit
406169f0382204d4bad8da9942bed9d865dfb022 accidentally
duplicated this line from earlier in the same list of commands.
Matthew Fernandez [Sat, 20 Nov 2021 16:05:22 +0000 (08:05 -0800)]
fail MinGW CMake CI jobs on any compiler warning
As of the prior commit, these builds are warning free.
Matthew Fernandez [Sat, 20 Nov 2021 18:10:27 +0000 (10:10 -0800)]
gvplugin_gdiplus_LTX_library: squash a -Wwrite-strings warning
In future, maybe `gvplugin_library_t` should be modified to make its string
member const, given it is always expected to be a string literal.
Matthew Fernandez [Sat, 20 Nov 2021 16:53:21 +0000 (08:53 -0800)]
work around MinGW’s lack of support for '%zu'
MinGW warns:
plugin/core/gvrender_core_dot.c: In function 'xdot_str_xbuf':
plugin/core/gvrender_core_dot.c:88:24: error: unknown conversion type
character 'z' in format [-Werror=format=]
88 | agxbprint (xb, "%s%zu -%s ", pfx, strlen(s), s);
| ^
plugin/core/gvrender_core_dot.c:88:29: error: format '%s' expects argument of
type 'char *', but argument 4 has type 'size_t' {aka 'unsigned int'}
[-Werror=format=]
88 | agxbprint (xb, "%s%zu -%s ", pfx, strlen(s), s);
| ~^ ~~~~~~~~~
| | |
| char * size_t {aka unsigned int}
| %d
plugin/core/gvrender_core_dot.c:88:20: error: too many arguments for format
[-Werror=format-extra-args]
88 | agxbprint (xb, "%s%zu -%s ", pfx, strlen(s), s);
| ^~~~~~~~~~~~
Matthew Fernandez [Sat, 20 Nov 2021 16:03:26 +0000 (08:03 -0800)]
gdiplusgen_textspan: squash -Wmisleading-indentation warning
Matthew Fernandez [Sat, 20 Nov 2021 15:56:56 +0000 (07:56 -0800)]
gdiplus plugin: make 'FileStream' destructor virtual
`FileStream::Release` optionally deletes `this`. This is OK because nothing
inherits from `FileStream`, but the compiler believes this is dangerous because
this class participates in an inheritance hierarchy and does not have a virtual
destructor. By giving it one, we silence the -Wdelete-non-virtual-dtor warning,
make it safer to inherit from this class in future, and make it safe to delete
a `FileStream` through an `IStream` pointer.
Matthew Fernandez [Sat, 20 Nov 2021 06:23:45 +0000 (22:23 -0800)]
cgraph: go through 'uintptr_t' when casting between pointers as IDs
The type `IDTYPE` is `uint64_t` which is wide enough to contain a pointer on all
supported platforms. However, on 32-bit platforms the compiler throws
-Wpointer-to-int-cast about this kind of back-and-forth shuffling. Going through
`uintptr_t` (or `intptr_t`) silences these.
Matthew Fernandez [Sat, 20 Nov 2021 06:21:45 +0000 (22:21 -0800)]
sfoutput: squash a -Wpointer-to-int-cast warning
Matthew Fernandez [Sat, 20 Nov 2021 06:19:31 +0000 (22:19 -0800)]
_sfpopen: fix uninitialized variable read on Windows
Matthew Fernandez [Sat, 20 Nov 2021 06:17:29 +0000 (22:17 -0800)]
sfio: squash -Wunused-variable on platforms without SIGPIPE
This warning, for example, is triggered in Mingw builds.
Matthew Fernandez [Sat, 20 Nov 2021 16:01:46 +0000 (08:01 -0800)]
plugin/gdiplus/gvloadimage_gdiplus.cpp: squash -Wunused-parameter warning
Matthew Fernandez [Sat, 20 Nov 2021 05:25:14 +0000 (21:25 -0800)]
plugin/gdiplus/gvtextlayout_gdiplus.cpp: squash -Wunused-parameter warnings
Matthew Fernandez [Sat, 20 Nov 2021 05:23:20 +0000 (21:23 -0800)]
plugin/gdiplus/gvrender_gdiplus.cpp: squash -Wunused-parameter warnings
Matthew Fernandez [Sat, 20 Nov 2021 05:21:57 +0000 (21:21 -0800)]
plugin/gdiplus/FileStream.cpp: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 19:21:46 +0000 (19:21 +0000)]
Merge branch 'smattr/
f7369310 -375d-44c7-91cc-
22e88c84d202 ' into 'main'
tclpkg/tclpathplan warning squashing
See merge request graphviz/graphviz!2286
Matthew Fernandez [Tue, 16 Nov 2021 05:46:06 +0000 (21:46 -0800)]
vgpane: squash -Wunused-parameter warnings
Matthew Fernandez [Tue, 16 Nov 2021 05:45:09 +0000 (21:45 -0800)]
vgpanecmd: squash -Wunused-parameter warning
Matthew Fernandez [Tue, 16 Nov 2021 05:41:27 +0000 (21:41 -0800)]
makecw: squash a -Wmissing-prototypes warning
Matthew Fernandez [Tue, 16 Nov 2021 05:33:45 +0000 (21:33 -0800)]
intpoint: squash a -Wswitch-default warning
This switch already covered all reachable cases.
Matthew Fernandez [Tue, 16 Nov 2021 05:25:41 +0000 (21:25 -0800)]
tclpkg/tclpathplan/intersect.c: remove unnecessary parens
Matthew Fernandez [Tue, 16 Nov 2021 05:15:38 +0000 (21:15 -0800)]
find_ints: remove unused 'polygon_list' parameter
Matthew Fernandez [Tue, 16 Nov 2021 05:11:21 +0000 (21:11 -0800)]
find_ints: squash a -Wswitch-default warning
It seems clear from surrounding context that this switch is intentionally a
no-op for other values.
Matthew Fernandez [Tue, 16 Nov 2021 05:08:44 +0000 (21:08 -0800)]
tclpkg/tclpathplan: use a size_t for 'nvertices'
Squashes three -Wsign-conversion warnings at the expense of introducing one.
Hopefully the introduced one can be squashed in future.
Matthew Fernandez [Tue, 16 Nov 2021 04:59:42 +0000 (20:59 -0800)]
tclpkg/tclpathplan: squash 'find_ints' -Wmissing-prototypes warning
Matthew Fernandez [Sun, 21 Nov 2021 18:19:21 +0000 (18:19 +0000)]
Merge branch 'smattr/
70deb7de -4445-488a-be9f-
b5f73e1f8d77 ' into 'main'
fix xdot JSON output to be valid JSON
Closes #1958
See merge request graphviz/graphviz!2295
Matthew Fernandez [Sun, 21 Nov 2021 01:02:15 +0000 (17:02 -0800)]
fix xdot JSON output to be valid JSON
The output of libxdot’s JSON functions included identifiers as non-strings,
something that is not valid JSON. This change results in identifiers like `e`
now being emitted as a string `"e"`.
Fixes #1958.
Matthew Fernandez [Sun, 21 Nov 2021 16:52:55 +0000 (16:52 +0000)]
Merge branch 'kf/gvcdef' into 'main'
gvc.def: Don't override export name
See merge request graphviz/graphviz!2290
Matthew Fernandez [Sun, 21 Nov 2021 06:53:42 +0000 (06:53 +0000)]
Merge branch 'smattr/
03501BAF -AD18-474D-B48E-
D7A8F81262F3 ' into 'main'
fail deployment if a release exceeds 50 artifacts
See merge request graphviz/graphviz!2284
Matthew Fernandez [Tue, 16 Nov 2021 01:20:45 +0000 (17:20 -0800)]
fail deployment if a release exceeds 50 artifacts
Following commit
0155cabbb7b22494b3d5da1425059387d8236cf2 , the number of
artifacts produced during packaging is down to 40. We expect this count to rise
as the CMake build system continues to be worked on, operating systems move in
and out of support cycles, and the Cygwin/Msys builds are tweaked. This change
introduced a safe guard to fail deployment if the number of artifacts grows to
exceed 50 again.
Related to #2147.
Matthew Fernandez [Sun, 21 Nov 2021 02:08:52 +0000 (02:08 +0000)]
Merge branch 'smattr/
e936b86f -3ac0-4234-98eb-
79f6d6e43a16 ' into 'main'
further gvusershape.c clean up
See merge request graphviz/graphviz!2287
Matthew Fernandez [Wed, 17 Nov 2021 03:34:13 +0000 (19:34 -0800)]
jpeg_size: use C99 'true' in loop condition
Matthew Fernandez [Wed, 17 Nov 2021 03:33:30 +0000 (19:33 -0800)]
jpeg_size: use a C99 bool for 'saw_bb' local
Matthew Fernandez [Wed, 17 Nov 2021 03:32:45 +0000 (19:32 -0800)]
svg_size: use C99 bools for local flag variables
Matthew Fernandez [Wed, 17 Nov 2021 03:30:45 +0000 (19:30 -0800)]
gvusershape.c: squash -Wmissing-prototypes warnings
Matthew Fernandez [Wed, 17 Nov 2021 03:30:26 +0000 (19:30 -0800)]
gvusershape_find: fix mismatch between prototype and implementation
Matthew Fernandez [Wed, 17 Nov 2021 03:16:26 +0000 (19:16 -0800)]
usershape_close: squash -Wunused-parameter warnings
Matthew Fernandez [Wed, 17 Nov 2021 03:15:41 +0000 (19:15 -0800)]
usershape_close: remove unnecessary cast
Matthew Fernandez [Wed, 17 Nov 2021 03:12:49 +0000 (19:12 -0800)]
get_int_msb_first: squash a -Wsign-conversion warning
Matthew Fernandez [Wed, 17 Nov 2021 03:10:53 +0000 (19:10 -0800)]
jpeg_size: mark 'standalone_markers' const
Matthew Fernandez [Wed, 17 Nov 2021 03:09:22 +0000 (19:09 -0800)]
jpeg_size: remove abuse of 'strchr' to search a byte array
Using `memchr` instead avoids the need to cast the array, shrinks the array
itself by avoiding the need for a NUL terminator, and makes it more obvious to
the compiler it can inline and unroll the whole thing.
Matthew Fernandez [Wed, 17 Nov 2021 03:01:14 +0000 (19:01 -0800)]
jpeg_size: remove use of 'junk' variable
This code was reading big endian integers into this variable that was then
ignored as a way of skipping fields. It is simpler and more efficient to just
fast forward the file handle over those bytes. This assumes the file handle is
to something seekable (e.g. not a FIFO), but the handle was already seeked
elsewhere in this function, so this assumption already existed.
Matthew Fernandez [Wed, 17 Nov 2021 02:54:40 +0000 (18:54 -0800)]
mingle usage: remove always-true if branch
This function is only ever called with `eval` non-negative.
Matthew Fernandez [Sun, 21 Nov 2021 01:08:09 +0000 (01:08 +0000)]
Merge branch 'smattr/
209CD786 -B836-43BD-A488-
535300F228D0 ' into 'main'
cmd/smyrna: more clean up
See merge request graphviz/graphviz!2288
Matthew Fernandez [Wed, 17 Nov 2021 04:55:10 +0000 (20:55 -0800)]
smyrna menucallbacks: squash -Wunused-parameter warnings
Matthew Fernandez [Wed, 17 Nov 2021 05:04:02 +0000 (21:04 -0800)]
smyrna: remove unused 'mHelp'
Matthew Fernandez [Wed, 17 Nov 2021 05:01:03 +0000 (21:01 -0800)]
smyrna: remove unused engine slot functions
Matthew Fernandez [Wed, 17 Nov 2021 04:56:48 +0000 (20:56 -0800)]
smyrna: remove unused 'show_close_nosavedlg'
Matthew Fernandez [Wed, 17 Nov 2021 04:53:08 +0000 (20:53 -0800)]
smyrna: remove unused 'get_gtktextview_text'
Matthew Fernandez [Wed, 17 Nov 2021 04:52:01 +0000 (20:52 -0800)]
smyrna: remove unused 'update_graph_properties'
Matthew Fernandez [Wed, 17 Nov 2021 04:48:07 +0000 (20:48 -0800)]
smyrna: remove unused 'on_attrSearchBtn_clicked'
Matthew Fernandez [Wed, 17 Nov 2021 04:47:03 +0000 (20:47 -0800)]
smyrna: remove unused 'attr_label_motion'
Matthew Fernandez [Wed, 17 Nov 2021 04:46:09 +0000 (20:46 -0800)]
smyrna: make 'attr_list_new' static
This function is not used outside of its containing file.
Matthew Fernandez [Fri, 19 Nov 2021 02:50:50 +0000 (02:50 +0000)]
Merge branch 'smattr/
7e500215 -5167-44d7-90c2-
9e79ec4686dd ' into 'main'
cmd/tools warning squashing and clean up
See merge request graphviz/graphviz!2283
Matthew Fernandez [Sat, 13 Nov 2021 03:36:37 +0000 (19:36 -0800)]
gvcolor: remove unnecessary parens
Matthew Fernandez [Sat, 13 Nov 2021 03:34:22 +0000 (19:34 -0800)]
sccmap: remove unnecessary parens
Matthew Fernandez [Sat, 13 Nov 2021 03:30:47 +0000 (19:30 -0800)]
bcomps: remove unnecessary parens
Matthew Fernandez [Sat, 13 Nov 2021 03:26:31 +0000 (19:26 -0800)]
bcomps getName: use size_t for buffer lengths
Squashes some -Wconversion warnings.
Matthew Fernandez [Sat, 13 Nov 2021 03:24:58 +0000 (19:24 -0800)]
bcomps blockName: use size_t for buffer lengths
Squashes some -Wconversion warnings.
Matthew Fernandez [Sat, 13 Nov 2021 03:17:28 +0000 (19:17 -0800)]
gvpack redoBBk: use size_t for buffer lengths
Squashes some -Wconverion warnings.
Matthew Fernandez [Sat, 13 Nov 2021 03:11:16 +0000 (19:11 -0800)]
gvpack freef: squash -Wunused-parameter warnings
Matthew Fernandez [Sat, 13 Nov 2021 03:09:24 +0000 (19:09 -0800)]
gvpack init: use a size_t to squash some -Wconversion warnings
Matthew Fernandez [Sat, 13 Nov 2021 03:00:46 +0000 (19:00 -0800)]
sccmap.c: use libc support to define 'INF'
Squashes a -Wconversion warning.
Matthew Fernandez [Sat, 13 Nov 2021 02:59:48 +0000 (18:59 -0800)]
sccmap.c: return an unsigned type from 'visit'
Squashes a -Wsign-conversion warning.
The `val` member of `Agnodeinfo_t` is unsigned and all uses of this function
store the return value in an unsigned. So it seems this function always should
have been declared as returning an unsigned.
Matthew Fernandez [Sat, 13 Nov 2021 02:58:45 +0000 (18:58 -0800)]
sccmap.c: use unsigned types consistently in sccstate
Squashes a -Wconversion warning.