]> granicus.if.org Git - graphviz/log
graphviz
3 years agoextractMax: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:32:24 +0000 (15:32 -0800)]
extractMax: use a C99 bool return type instead of boolean

3 years agoneatogen bfs: use C99 bool return types 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

3 years agoidealsize: use a C99 bool return type 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

3 years agopathscross: 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

3 years agoconc.c: use C99 bools instead of booleans
Matthew Fernandez [Sun, 21 Nov 2021 23:25:06 +0000 (15:25 -0800)]
conc.c: use C99 bools instead of booleans

3 years agonoClip; use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:23:07 +0000 (15:23 -0800)]
noClip; use a C99 bool return type instead of boolean

3 years agohtmlenv_t.objid_set: use a C99 bool 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

3 years agoMerge branch 'smattr/b7d78258-59ca-4b36-b34f-3ba688801700' into 'main'
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

3 years agoteach the Autotools build system that GTK headers are not part of Graphviz
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.

3 years agoMerge branch 'smattr/70447D6E-8DE8-42FE-938C-6623A2094C4D' into 'main'
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

3 years agotclpkg: remove C++ guards from simple.h
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++.

3 years agoMerge branch 'smattr/A2038E24-6EA2-49E9-9C64-01EE8748A977' into 'main'
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

3 years agosmyrna renderNodeLabels: remove unused 'nodeSize'
Matthew Fernandez [Sun, 21 Nov 2021 17:33:22 +0000 (09:33 -0800)]
smyrna renderNodeLabels: remove unused 'nodeSize'

3 years agosmyrna edge_xdot: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 17:33:07 +0000 (09:33 -0800)]
smyrna edge_xdot: squash -Wunused-parameter warnings

3 years agosmyrna renderSmGraph: remove unused 'g' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:32:43 +0000 (09:32 -0800)]
smyrna renderSmGraph: remove unused 'g' parameter

3 years agosmyrna set_boundaries: remove unused 't' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:30:05 +0000 (09:30 -0800)]
smyrna set_boundaries: remove unused 't' parameter

3 years agosmyrna changetopfishfocus: remove unused 'z' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:28:59 +0000 (09:28 -0800)]
smyrna changetopfishfocus: remove unused 'z' parameter

3 years agosmyrna get_active_frame: remove unused 't' parameter
Matthew Fernandez [Sun, 21 Nov 2021 17:27:02 +0000 (09:27 -0800)]
smyrna get_active_frame: remove unused 't' parameter

3 years agosmyrna prepare_topological_fisheye: remove unused 'gg'
Matthew Fernandez [Sun, 21 Nov 2021 17:26:23 +0000 (09:26 -0800)]
smyrna prepare_topological_fisheye: remove unused 'gg'

3 years agosmyrna pick_object: replace use of large constant with 'FLT_MAX'
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.

3 years agosmyrna combineCallback: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 17:21:48 +0000 (09:21 -0800)]
smyrna combineCallback: squash -Wunused-parameter warnings

3 years agosmyrna frmobjectui.c: squash -Wunused-parameter warnings
Matthew Fernandez [Sun, 21 Nov 2021 17:12:47 +0000 (09:12 -0800)]
smyrna frmobjectui.c: squash -Wunused-parameter warnings

3 years agosmyrna: remove unused 'on_attrRB0_clicked'
Matthew Fernandez [Sun, 21 Nov 2021 17:10:17 +0000 (09:10 -0800)]
smyrna: remove unused 'on_attrRB0_clicked'

3 years agosmyrna: remove an unused strcasecmp.h include
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.

3 years agoMerge branch 'smattr/2BC8555C-71B7-4C94-A426-C0222D7299D4' into 'main'
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

3 years agodeploy.py: simplify 'checksum' function
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.

3 years agodeploy.py: include Windows artifacts in generated JSON
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.

3 years agodeploy.py: outline functionality for deriving the 'format' field of JSON output
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.

3 years agoMerge branch 'smattr/054CE618-2658-48EF-AEDD-5402FB3AEB53' into 'main'
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

3 years agouse gen_version.py’s '--output' option to avoid redirection, encoding hacks
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

3 years agogen_version.py: add a '--output' flag
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.

3 years agoMerge branch 'smattr/788C09F1-D6B8-4193-B283-C68FE424A520' into 'main'
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

3 years agoDEVELOPERS.md: document how to set dynamic loader path on macOS
Matthew Fernandez [Thu, 25 Nov 2021 16:54:41 +0000 (08:54 -0800)]
DEVELOPERS.md: document how to set dynamic loader path on macOS

3 years agoMerge branch 'cross' into 'main'
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

3 years agocmd/dot: don't run dot -c when cross-compiling (CMake edition)
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.

3 years agoMerge branch 'smattr/5D7A95BC-E75A-4C0C-A377-4C66AD66D428' into 'main'
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

3 years ago.gitlab-ci.yml: remove inaccurate comment
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.

3 years agofail MinGW CMake CI jobs on any compiler warning
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.

3 years agogvplugin_gdiplus_LTX_library: squash a -Wwrite-strings warning
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.

3 years agowork around MinGW’s lack of support for '%zu'
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);
        |                    ^~~~~~~~~~~~

3 years agogdiplusgen_textspan: squash -Wmisleading-indentation warning
Matthew Fernandez [Sat, 20 Nov 2021 16:03:26 +0000 (08:03 -0800)]
gdiplusgen_textspan: squash -Wmisleading-indentation warning

3 years agogdiplus plugin: make 'FileStream' destructor virtual
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.

3 years agocgraph: go through 'uintptr_t' when casting between pointers as IDs
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.

3 years agosfoutput: squash a -Wpointer-to-int-cast warning
Matthew Fernandez [Sat, 20 Nov 2021 06:21:45 +0000 (22:21 -0800)]
sfoutput: squash a -Wpointer-to-int-cast warning

3 years ago_sfpopen: fix uninitialized variable read on Windows
Matthew Fernandez [Sat, 20 Nov 2021 06:19:31 +0000 (22:19 -0800)]
_sfpopen: fix uninitialized variable read on Windows

3 years agosfio: squash -Wunused-variable on platforms without SIGPIPE
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.

3 years agoplugin/gdiplus/gvloadimage_gdiplus.cpp: squash -Wunused-parameter warning
Matthew Fernandez [Sat, 20 Nov 2021 16:01:46 +0000 (08:01 -0800)]
plugin/gdiplus/gvloadimage_gdiplus.cpp: squash -Wunused-parameter warning

3 years agoplugin/gdiplus/gvtextlayout_gdiplus.cpp: squash -Wunused-parameter warnings
Matthew Fernandez [Sat, 20 Nov 2021 05:25:14 +0000 (21:25 -0800)]
plugin/gdiplus/gvtextlayout_gdiplus.cpp: squash -Wunused-parameter warnings

3 years agoplugin/gdiplus/gvrender_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

3 years agoplugin/gdiplus/FileStream.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

3 years agoMerge branch 'smattr/f7369310-375d-44c7-91cc-22e88c84d202' into 'main'
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

3 years agovgpane: squash -Wunused-parameter warnings
Matthew Fernandez [Tue, 16 Nov 2021 05:46:06 +0000 (21:46 -0800)]
vgpane: squash -Wunused-parameter warnings

3 years agovgpanecmd: squash -Wunused-parameter warning
Matthew Fernandez [Tue, 16 Nov 2021 05:45:09 +0000 (21:45 -0800)]
vgpanecmd: squash -Wunused-parameter warning

3 years agomakecw: squash a -Wmissing-prototypes warning
Matthew Fernandez [Tue, 16 Nov 2021 05:41:27 +0000 (21:41 -0800)]
makecw: squash a -Wmissing-prototypes warning

3 years agointpoint: squash a -Wswitch-default 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.

3 years agotclpkg/tclpathplan/intersect.c: remove unnecessary parens
Matthew Fernandez [Tue, 16 Nov 2021 05:25:41 +0000 (21:25 -0800)]
tclpkg/tclpathplan/intersect.c: remove unnecessary parens

3 years agofind_ints: remove unused 'polygon_list' parameter
Matthew Fernandez [Tue, 16 Nov 2021 05:15:38 +0000 (21:15 -0800)]
find_ints: remove unused 'polygon_list' parameter

3 years agofind_ints: squash a -Wswitch-default warning
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.

3 years agotclpkg/tclpathplan: use a size_t for 'nvertices'
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.

3 years agotclpkg/tclpathplan: squash 'find_ints' -Wmissing-prototypes warning
Matthew Fernandez [Tue, 16 Nov 2021 04:59:42 +0000 (20:59 -0800)]
tclpkg/tclpathplan: squash 'find_ints' -Wmissing-prototypes warning

3 years agoMerge branch 'smattr/70deb7de-4445-488a-be9f-b5f73e1f8d77' into 'main'
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

3 years agofix xdot JSON output to be valid JSON
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.

3 years agoMerge branch 'kf/gvcdef' into 'main'
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

3 years agoMerge branch 'smattr/03501BAF-AD18-474D-B48E-D7A8F81262F3' into 'main'
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

3 years agofail deployment if a release exceeds 50 artifacts
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.

3 years agoMerge branch 'smattr/e936b86f-3ac0-4234-98eb-79f6d6e43a16' into 'main'
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

3 years agojpeg_size: use C99 'true' in loop condition
Matthew Fernandez [Wed, 17 Nov 2021 03:34:13 +0000 (19:34 -0800)]
jpeg_size: use C99 'true' in loop condition

3 years agojpeg_size: use a C99 bool for 'saw_bb' local
Matthew Fernandez [Wed, 17 Nov 2021 03:33:30 +0000 (19:33 -0800)]
jpeg_size: use a C99 bool for 'saw_bb' local

3 years agosvg_size: use C99 bools for local flag variables
Matthew Fernandez [Wed, 17 Nov 2021 03:32:45 +0000 (19:32 -0800)]
svg_size: use C99 bools for local flag variables

3 years agogvusershape.c: squash -Wmissing-prototypes warnings
Matthew Fernandez [Wed, 17 Nov 2021 03:30:45 +0000 (19:30 -0800)]
gvusershape.c: squash -Wmissing-prototypes warnings

3 years agogvusershape_find: fix mismatch between prototype and implementation
Matthew Fernandez [Wed, 17 Nov 2021 03:30:26 +0000 (19:30 -0800)]
gvusershape_find: fix mismatch between prototype and implementation

3 years agousershape_close: squash -Wunused-parameter warnings
Matthew Fernandez [Wed, 17 Nov 2021 03:16:26 +0000 (19:16 -0800)]
usershape_close: squash -Wunused-parameter warnings

3 years agousershape_close: remove unnecessary cast
Matthew Fernandez [Wed, 17 Nov 2021 03:15:41 +0000 (19:15 -0800)]
usershape_close: remove unnecessary cast

3 years agoget_int_msb_first: squash a -Wsign-conversion warning
Matthew Fernandez [Wed, 17 Nov 2021 03:12:49 +0000 (19:12 -0800)]
get_int_msb_first: squash a -Wsign-conversion warning

3 years agojpeg_size: mark 'standalone_markers' const
Matthew Fernandez [Wed, 17 Nov 2021 03:10:53 +0000 (19:10 -0800)]
jpeg_size: mark 'standalone_markers' const

3 years agojpeg_size: remove abuse of 'strchr' to search a byte array
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.

3 years agojpeg_size: remove use of 'junk' variable
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.

3 years agomingle usage: remove always-true if branch
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.

3 years agoMerge branch 'smattr/209CD786-B836-43BD-A488-535300F228D0' into 'main'
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

3 years agosmyrna menucallbacks: squash -Wunused-parameter warnings
Matthew Fernandez [Wed, 17 Nov 2021 04:55:10 +0000 (20:55 -0800)]
smyrna menucallbacks: squash -Wunused-parameter warnings

3 years agosmyrna: remove unused 'mHelp'
Matthew Fernandez [Wed, 17 Nov 2021 05:04:02 +0000 (21:04 -0800)]
smyrna: remove unused 'mHelp'

3 years agosmyrna: remove unused engine slot functions
Matthew Fernandez [Wed, 17 Nov 2021 05:01:03 +0000 (21:01 -0800)]
smyrna: remove unused engine slot functions

3 years agosmyrna: remove unused 'show_close_nosavedlg'
Matthew Fernandez [Wed, 17 Nov 2021 04:56:48 +0000 (20:56 -0800)]
smyrna: remove unused 'show_close_nosavedlg'

3 years agosmyrna: remove unused 'get_gtktextview_text'
Matthew Fernandez [Wed, 17 Nov 2021 04:53:08 +0000 (20:53 -0800)]
smyrna: remove unused 'get_gtktextview_text'

3 years agosmyrna: remove unused 'update_graph_properties'
Matthew Fernandez [Wed, 17 Nov 2021 04:52:01 +0000 (20:52 -0800)]
smyrna: remove unused 'update_graph_properties'

3 years agosmyrna: remove unused 'on_attrSearchBtn_clicked'
Matthew Fernandez [Wed, 17 Nov 2021 04:48:07 +0000 (20:48 -0800)]
smyrna: remove unused 'on_attrSearchBtn_clicked'

3 years agosmyrna: remove unused 'attr_label_motion'
Matthew Fernandez [Wed, 17 Nov 2021 04:47:03 +0000 (20:47 -0800)]
smyrna: remove unused 'attr_label_motion'

3 years agosmyrna: make 'attr_list_new' static
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.

3 years agoMerge branch 'smattr/7e500215-5167-44d7-90c2-9e79ec4686dd' into 'main'
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

3 years agogvcolor: remove unnecessary parens
Matthew Fernandez [Sat, 13 Nov 2021 03:36:37 +0000 (19:36 -0800)]
gvcolor: remove unnecessary parens

3 years agosccmap: remove unnecessary parens
Matthew Fernandez [Sat, 13 Nov 2021 03:34:22 +0000 (19:34 -0800)]
sccmap: remove unnecessary parens

3 years agobcomps: remove unnecessary parens
Matthew Fernandez [Sat, 13 Nov 2021 03:30:47 +0000 (19:30 -0800)]
bcomps: remove unnecessary parens

3 years agobcomps getName: use size_t for buffer lengths
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.

3 years agobcomps blockName: use size_t for buffer lengths
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.

3 years agogvpack redoBBk: use size_t for buffer lengths
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.

3 years agogvpack freef: squash -Wunused-parameter warnings
Matthew Fernandez [Sat, 13 Nov 2021 03:11:16 +0000 (19:11 -0800)]
gvpack freef: squash -Wunused-parameter warnings

3 years agogvpack init: use a size_t to squash some -Wconversion 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

3 years agosccmap.c: use libc support to define 'INF'
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.

3 years agosccmap.c: return an unsigned type from 'visit'
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.

3 years agosccmap.c: use unsigned types consistently in sccstate
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.