]> granicus.if.org Git - graphviz/log
graphviz
3 years agogd plugin: remove unnecessary casts around 'us->data'
Matthew Fernandez [Fri, 26 Nov 2021 17:53:43 +0000 (09:53 -0800)]
gd plugin: remove unnecessary casts around 'us->data'

3 years agopango plugin: remove unnecessary casts around 'us->data'
Matthew Fernandez [Fri, 26 Nov 2021 17:52:11 +0000 (09:52 -0800)]
pango plugin: remove unnecessary casts around 'us->data'

3 years agogdk plugin: remove unnecessary casts around 'us->data'
Matthew Fernandez [Fri, 26 Nov 2021 17:50:53 +0000 (09:50 -0800)]
gdk plugin: remove unnecessary casts around 'us->data'

3 years agotcldot-graphcmd.c: remove commented out code
Matthew Fernandez [Fri, 26 Nov 2021 17:46:04 +0000 (09:46 -0800)]
tcldot-graphcmd.c: remove commented out code

3 years agoMerge branch 'smattr/2F6B4B43-6BDB-40C6-83D2-181D9E5CE03C' into 'main'
Matthew Fernandez [Thu, 2 Dec 2021 16:45:04 +0000 (16:45 +0000)]
Merge branch 'smattr/2F6B4B43-6BDB-40C6-83D2-181D9E5CE03C' into 'main'

misc cleanup

See merge request graphviz/graphviz!2305

3 years agoCMake: use a relative path to locate configure_plugins.cmake
Matthew Fernandez [Thu, 25 Nov 2021 18:07:30 +0000 (10:07 -0800)]
CMake: use a relative path to locate configure_plugins.cmake

`install` with `SCRIPT` supports using relative paths to the current directory,
so there is no need to use the less obvious `${TOP_SOURCE_DIR}`.

3 years agoCMake: stop configuring CMAKE_INCLUDE_PATH
Matthew Fernandez [Thu, 25 Nov 2021 15:39:05 +0000 (07:39 -0800)]
CMake: stop configuring CMAKE_INCLUDE_PATH

This variable affects `find_file` and `find_path`.¹ `find_file` is not used in
Graphviz and `find_path` already defaults to the correct values for the current
platform.² This change avoids, among other things, hard-coding of the target
architecture as x86-64.

Related to #1973.

¹ see https://cmake.org/cmake/help/latest/variable/CMAKE_INCLUDE_PATH.html#variable:CMAKE_INCLUDE_PATH
² https://cmake.org/cmake/help/latest/command/find_path.html#command:find_path

3 years agogvconfig_plugin_install_builtins: remove an unnecessary cast
Matthew Fernandez [Fri, 26 Nov 2021 06:12:57 +0000 (22:12 -0800)]
gvconfig_plugin_install_builtins: remove an unnecessary cast

3 years agogvconfig.c: fix comment typo
Matthew Fernandez [Fri, 26 Nov 2021 06:12:44 +0000 (22:12 -0800)]
gvconfig.c: fix comment typo

3 years agoremove EXPERIMENTAL_MYFGETS-guarded code
Matthew Fernandez [Fri, 26 Nov 2021 06:07:15 +0000 (22:07 -0800)]
remove EXPERIMENTAL_MYFGETS-guarded code

Nothing in the build systems defines this.

3 years agoremove getenv detection
Matthew Fernandez [Fri, 26 Nov 2021 06:03:00 +0000 (22:03 -0800)]
remove getenv detection

The code base extensively uses `getenv` without checking the `HAVE_GETENV` macro
this detection supplies. This is not a problem because `getenv` is provided as
far back as C89, and can be guaranteed to exist on all platforms for which
Graphviz currently compiles, as we require C99.

3 years agoMerge branch 'smattr/162479A8-250E-4F66-91BC-61BECABD6150' into 'main'
Matthew Fernandez [Tue, 30 Nov 2021 05:42:41 +0000 (05:42 +0000)]
Merge branch 'smattr/162479A8-250E-4F66-91BC-61BECABD6150' into 'main'

fix claimed minimum supported CMake version

See merge request graphviz/graphviz!2302

3 years agoCMake: [nfc] standardize 'if' style
Matthew Fernandez [Wed, 24 Nov 2021 03:35:27 +0000 (19:35 -0800)]
CMake: [nfc] standardize 'if' style

The if-style used in CMake files had no consistency. Meanwhile, the expression
in a CMake `endif` is ignored. We learned in the process of constructing the
prior commit that this is supported right back to CMake 3.1. So this commit
standardizes on no-space, no-expression if-style.

3 years agofix claimed minimum supported CMake version
Matthew Fernandez [Wed, 24 Nov 2021 03:16:46 +0000 (19:16 -0800)]
fix claimed minimum supported CMake version

Commit 354ed2c644452f300b316d166386bd40d8fec76f, among others, introduced the
use of `$<TARGET_OBJECTS>` in `target_link_libraries` calls. The CMake docs¹
claim this is only officially supported from 3.21 onwards, despite working in
some prior versions. CMake provides binaries going back many versions² so it is
possible to manually bisect exactly what this wording in the CMake docs means.
Running this process yields the answer that CMake 3.9 is the first version that
does not error out when encountering `$<TARGET_OBJECTS>` in a
`target_link_libraries` expression.

Note that the Graphviz CMake files also use some features like `endif` without
an expression, which claims to only be supported from CMake 3.14 onwards.³
Despite this, versions as far back as CMake 3.1 support this syntax just fine.

¹ https://cmake.org/cmake/help/latest/command/target_link_libraries.html#linking-object-libraries-via-target-objects
² https://cmake.org/files/
³ https://cmake.org/cmake/help/v3.13/command/endif.html vs
  https://cmake.org/cmake/help/v3.14/command/endif.html

3 years agoMerge branch 'smattr/FC04297A-31DD-49E0-A0C0-42C6CB63E00E' into 'main'
Matthew Fernandez [Mon, 29 Nov 2021 17:28:28 +0000 (17:28 +0000)]
Merge branch 'smattr/FC04297A-31DD-49E0-A0C0-42C6CB63E00E' into 'main'

ci/mingw-build.sh: install all packages with one pacman command

See merge request graphviz/graphviz!2313

3 years agoci/mingw-build.sh: install all packages with one pacman command
Magnus Jacobsson [Tue, 5 Oct 2021 19:43:53 +0000 (21:43 +0200)]
ci/mingw-build.sh: install all packages with one pacman command

This is potentially faster.

3 years agoMerge branch 'smattr/1FA2B68F-FA19-4465-9BFD-8F82D6D786BD' into 'main'
Matthew Fernandez [Mon, 29 Nov 2021 16:28:02 +0000 (16:28 +0000)]
Merge branch 'smattr/1FA2B68F-FA19-4465-9BFD-8F82D6D786BD' into 'main'

don't override library names in .def files

See merge request graphviz/graphviz!2314

3 years agoedgepaint: remove 'LIBRARY' declaration from the MSVC defs file
Matthew Fernandez [Sun, 28 Nov 2021 19:15:12 +0000 (11:15 -0800)]
edgepaint: remove 'LIBRARY' declaration from the MSVC defs file

Similar to the prior commit and 2b92772d480f321bda6615140efa546abc5c66e9, this
is a compatibility change that allows MinGW to also understand this file
correctly.

Suggested-by: Keno Fischer <keno@juliacomputing.com>
3 years agopathplan: don't override library name in .def file
Magnus Jacobsson [Sun, 28 Nov 2021 12:32:28 +0000 (13:32 +0100)]
pathplan: don't override library name in .def file

Similarly as reported in
https://gitlab.com/graphviz/graphviz/-/issues/2156, the export name
override breaks the MinGW and Cygwin autotools builds. 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.

Thanks @Keno.

3 years agoMerge branch 'smattr/E89137C0-15A3-4ACD-8BE0-1211A728BB7E' into 'main'
Matthew Fernandez [Sat, 27 Nov 2021 22:23:19 +0000 (22:23 +0000)]
Merge branch 'smattr/E89137C0-15A3-4ACD-8BE0-1211A728BB7E' into 'main'

some bool modernization

See merge request graphviz/graphviz!2300

3 years agoneato_set_aspect: use a C99 bool return type instead of boolean
Matthew Fernandez [Sun, 21 Nov 2021 23:37:51 +0000 (15:37 -0800)]
neato_set_aspect: use a C99 bool return type instead of boolean

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

3 years agolib/neatogen/dijkstra.c: remove a commented out #include
Matthew Fernandez [Sun, 21 Nov 2021 23:33:40 +0000 (15:33 -0800)]
lib/neatogen/dijkstra.c: remove a commented out #include

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.