]> granicus.if.org Git - graphviz/log
graphviz
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.

3 years agosccmap.c: remove 'INLINE' alternatives
Matthew Fernandez [Sat, 13 Nov 2021 02:53:58 +0000 (18:53 -0800)]
sccmap.c: remove 'INLINE' alternatives

Modern compilers are easily capable of inlining these functions by themselves.

3 years agosccmap.c: use another unsigned type to squash -Wconversion warnings
Matthew Fernandez [Sat, 13 Nov 2021 02:53:14 +0000 (18:53 -0800)]
sccmap.c: use another unsigned type to squash -Wconversion warnings

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 an unsigned type to squash some -Wconversion warnings
Matthew Fernandez [Sat, 13 Nov 2021 02:49:26 +0000 (18:49 -0800)]
sccmap.c: use an unsigned type to squash some -Wconversion warnings

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 agogvcolor.c: remove an unnecessary cast
Matthew Fernandez [Sat, 13 Nov 2021 02:35:12 +0000 (18:35 -0800)]
gvcolor.c: remove an unnecessary cast

3 years agogvcolor.c: remove duplicated #include
Matthew Fernandez [Sat, 13 Nov 2021 02:33:03 +0000 (18:33 -0800)]
gvcolor.c: remove duplicated #include

3 years agogvcolor.c: use a size_t to squash a -Wsign-conversion warning
Matthew Fernandez [Sat, 13 Nov 2021 02:32:29 +0000 (18:32 -0800)]
gvcolor.c: use a size_t to squash a -Wsign-conversion warning

3 years agoMerge branch 'cross' into 'main'
Matthew Fernandez [Fri, 19 Nov 2021 01:49:13 +0000 (01:49 +0000)]
Merge branch 'cross' into 'main'

cmd/dot: don't run dot -c when cross-compiling

See merge request graphviz/graphviz!2281

3 years agoCHANGELOG.md entry for the prior commit
Matthew Fernandez [Fri, 19 Nov 2021 01:01:11 +0000 (17:01 -0800)]
CHANGELOG.md entry for the prior commit

3 years agocmd/dot: don't run dot -c when cross-compiling
Alyssa Ross [Fri, 12 Nov 2021 16:35:05 +0000 (16:35 +0000)]
cmd/dot: don't run dot -c when cross-compiling

We probably can't execute the binary we've cross compiled.

3 years agogvc.def: Don't override export name
Keno Fischer [Thu, 18 Nov 2021 09:18:46 +0000 (04:18 -0500)]
gvc.def: Don't override export name

As reported in https://gitlab.com/graphviz/graphviz/-/issues/2156,
the export name override breaks the win32/mingw32 autoconf build.
By not specifying the export name, each toolchain should use its
appropriate default, which should at least work, even if it's
not consistent across toolchains.

3 years agoMerge branch 'smattr/5E1B768C-337D-4ED1-9693-E6A6B1DFE934' into 'main'
Matthew Fernandez [Wed, 17 Nov 2021 16:26:34 +0000 (16:26 +0000)]
Merge branch 'smattr/5E1B768C-337D-4ED1-9693-E6A6B1DFE934' into 'main'

cgraph man page formatting fix

See merge request graphviz/graphviz!2280

3 years agoadd a CHANGELOG entry for the prior commit
Matthew Fernandez [Fri, 12 Nov 2021 05:13:17 +0000 (21:13 -0800)]
add a CHANGELOG entry for the prior commit

3 years agoCorrect boldness of agnxtsubg in cgraph.3
Magnus Jacobsson [Sat, 5 Sep 2020 08:14:45 +0000 (10:14 +0200)]
Correct boldness of agnxtsubg in cgraph.3

3 years agoMerge branch 'smattr/6c18e731-115d-4167-92e7-bf96cbbe151e' into 'main'
Matthew Fernandez [Wed, 17 Nov 2021 03:36:35 +0000 (03:36 +0000)]
Merge branch 'smattr/6c18e731-115d-4167-92e7-bf96cbbe151e' into 'main'

gmlparse.y: fix all compiler warnings

See merge request graphviz/graphviz!2278

3 years agogmlparse.y: remove unnecessary parens
Matthew Fernandez [Thu, 11 Nov 2021 04:30:15 +0000 (20:30 -0800)]
gmlparse.y: remove unnecessary parens

3 years agomkGraph: remove shadowing of 'G' parameter
Matthew Fernandez [Thu, 11 Nov 2021 04:25:42 +0000 (20:25 -0800)]
mkGraph: remove shadowing of 'G' parameter

3 years agoaddNodeLabelGraphics: remove unused 'xb' parameter
Matthew Fernandez [Thu, 11 Nov 2021 04:19:57 +0000 (20:19 -0800)]
addNodeLabelGraphics: remove unused 'xb' parameter

3 years agogmlparse.y: remove commented out code
Matthew Fernandez [Thu, 11 Nov 2021 04:18:36 +0000 (20:18 -0800)]
gmlparse.y: remove commented out code

3 years agofree_attr: squash -Wunused-parameter warnings
Matthew Fernandez [Thu, 11 Nov 2021 04:18:16 +0000 (20:18 -0800)]
free_attr: squash -Wunused-parameter warnings

3 years agogmlparse.y: consistently use unsigned short types for 'kind'
Matthew Fernandez [Thu, 11 Nov 2021 04:17:07 +0000 (20:17 -0800)]
gmlparse.y: consistently use unsigned short types for 'kind'

Squashes a -Wconversion warning.

3 years agogmlparse.y: consistently use unsigned short types for 'sort'
Matthew Fernandez [Thu, 11 Nov 2021 04:15:20 +0000 (20:15 -0800)]
gmlparse.y: consistently use unsigned short types for 'sort'

Squashes a -Wconversion warning.

3 years agogmlparse.y: remove unused 'ushort' typedef
Matthew Fernandez [Thu, 11 Nov 2021 04:08:22 +0000 (20:08 -0800)]
gmlparse.y: remove unused 'ushort' typedef

3 years agogmlparse.y: use more appropriate stack entry count type
Matthew Fernandez [Thu, 11 Nov 2021 04:05:46 +0000 (20:05 -0800)]
gmlparse.y: use more appropriate stack entry count type

Squashes some -Wsign-conversion warnings.