]>
granicus.if.org Git - graphviz/log
Matthew Fernandez [Thu, 7 Apr 2022 00:36:42 +0000 (17:36 -0700)]
Quartz plugin quartz_textlayout: squash -Wunused-parameter warning
This parameter cannot be removed because this function is used as a callback.
Matthew Fernandez [Thu, 7 Apr 2022 00:35:39 +0000 (17:35 -0700)]
Quartz plugin quartzgen_bezier: squash -Wunused-parameter warnings
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Thu, 7 Apr 2022 00:34:09 +0000 (17:34 -0700)]
Quartz plugin quartzgen_begin_page: remove open coded 'MAP_FAILED'
Later on this code goes on to do an unchecked `mmap`, so it is unclear exactly
what the author believed the failure semantics of `mmap` are. Nevertheless, this
seems like a slight improvement.
Matthew Fernandez [Wed, 6 Apr 2022 15:11:35 +0000 (08:11 -0700)]
Quartz plugin: mark 'quartz_textlayout' static
This function is not used outside of its containing file.
Matthew Fernandez [Wed, 6 Apr 2022 15:04:55 +0000 (08:04 -0700)]
Quartz plugin: mark 'quartzgen_textspan' static
This function is not used outside of its containing file.
Matthew Fernandez [Wed, 6 Apr 2022 15:04:03 +0000 (08:04 -0700)]
Quartz plugin quartzgen_begin_anchor: squash -Wunused-parameter warnings
These parameters cannot be removed because this function is used as a callback.
Matthew Fernandez [Wed, 6 Apr 2022 15:03:17 +0000 (08:03 -0700)]
Quartz plugin: squash a -Wsign-compare warning
Matthew Fernandez [Wed, 6 Apr 2022 15:01:41 +0000 (08:01 -0700)]
Quartz plugin: remove unnecessary casts
Matthew Fernandez [Wed, 6 Apr 2022 14:50:54 +0000 (07:50 -0700)]
Quartz plugin: squash -Wundef warnings
Matthew Fernandez [Wed, 6 Apr 2022 14:49:12 +0000 (07:49 -0700)]
Quartz plugin quartz_loadimage_quartz: squash -Wunused-parameter warning
This parameter cannot be removed because this function is used as a callback.
Matthew Fernandez [Wed, 6 Apr 2022 14:46:08 +0000 (07:46 -0700)]
Quartz plugin quartz_format: squash -Wsign-conversion warning
We know `device.id` is always a valid `format_type` because its only possible
values are defined within this plugin.
Matthew Fernandez [Wed, 6 Apr 2022 14:43:26 +0000 (07:43 -0700)]
Quartz plugin: mark 'memory_data_consumer_get_byte_pointer' static
This function is not used outside of its containing file.
Matthew Fernandez [Wed, 6 Apr 2022 03:00:12 +0000 (20:00 -0700)]
CMake: enable Quartz plugin
It is unclear how valuable this is, given this is only applicable to macOS and
its dependency discovery (based on the Autotools behavior) is fairly ad hoc. But
we still drag it into the CMake world to make progress on unifying the Graphviz
build system.
Gitlab: #1836
Matthew Fernandez [Sun, 10 Apr 2022 06:59:37 +0000 (06:59 +0000)]
Merge branch 'smattr/
A76659AC -7B7E-4C6C-803F-
23D7EDCA5C11 ' into 'main'
CMake: enable GTK plugin
See merge request graphviz/graphviz!2561
Matthew Fernandez [Sun, 3 Apr 2022 22:19:54 +0000 (15:19 -0700)]
CMake: enable GTK plugin
Gitlab: #1836
Matthew Fernandez [Mon, 4 Apr 2022 02:39:33 +0000 (19:39 -0700)]
GTK plugin create_window1: remove unused 'tmp_toolbar_icon_size'
Matthew Fernandez [Sat, 9 Apr 2022 21:54:51 +0000 (21:54 +0000)]
Merge branch 'smattr/
AD90CABB -D995-48F5-84F6-
FAD9B13D0FB8 ' into 'main'
remove some more unused unistd.h #includes
See merge request graphviz/graphviz!2563
Matthew Fernandez [Tue, 5 Apr 2022 14:36:16 +0000 (07:36 -0700)]
nop: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Tue, 5 Apr 2022 14:35:25 +0000 (07:35 -0700)]
gv2gml: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Tue, 5 Apr 2022 14:32:09 +0000 (07:32 -0700)]
ccomps: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Sat, 9 Apr 2022 19:39:38 +0000 (19:39 +0000)]
Merge branch 'smattr/
5A077557 -8681-4EB9-BAD2-
0D329EBA379B ' into 'main'
CMake: enable Poppler plugin and squash compiler warnings
See merge request graphviz/graphviz!2564
Matthew Fernandez [Wed, 6 Apr 2022 02:38:18 +0000 (19:38 -0700)]
Poppler plugin gvloadimage_poppler_load: fix: match Glib allocation and free
The variable `absolute` is allocated using Glib’s `g_strdup` and friends.
Quoting the Glib docs:¹
It's important to match `g_malloc()` (and wrappers such as `g_new()`) with
`g_free()`, `g_slice_alloc()` (and wrappers such as `g_slice_new()`) with
`g_slice_free()`, plain `malloc()` with `free()`, and (if you're using C++)
`new` with `delete` and `new[]` with `delete[]`. Otherwise bad things can
happen, since these allocators may use different memory pools (and new/delete
call constructors and destructors).
So a custom allocation scheme or arena can be in play. Basically if you
`g_strdup` and then pair this with `free` (as was done in the code prior to this
commit), you risk leaking memory from the Glib pool and corrupting your system
allocator.
Having said that, this is no longer a concern in newer Glib:
Since GLib 2.46 `g_malloc()` is hardcoded to always use the system malloc
implementation.
Still, why tempt fate?
¹ https://developer-old.gnome.org/glib/stable/glib-Memory-Allocation.html
Matthew Fernandez [Wed, 6 Apr 2022 02:37:51 +0000 (19:37 -0700)]
Poppler plugin gvloadimage_poppler_load: remove open coded 'NULL'
Matthew Fernandez [Wed, 6 Apr 2022 02:37:34 +0000 (19:37 -0700)]
Poppler plugin gvloadimage_poppler_cairo: remove unnecessary cast
Matthew Fernandez [Wed, 6 Apr 2022 02:30:48 +0000 (19:30 -0700)]
Poppler plugin gvloadimage_poppler_cairo: squash -Wunused-parameter warning
This cannot be removed because this function is used as a callback.
Matthew Fernandez [Wed, 6 Apr 2022 02:29:34 +0000 (19:29 -0700)]
CMake: enable Poppler plugin
Gitlab: #1836
Matthew Fernandez [Sat, 9 Apr 2022 18:14:58 +0000 (18:14 +0000)]
Merge branch 'smattr/
3FCAE05F -BC51-4094-AEE1-
F3CD1E65AE93 ' into 'main'
WebP plugin: fix use of raw '%zu'
See merge request graphviz/graphviz!2573
Matthew Fernandez [Fri, 8 Apr 2022 03:39:41 +0000 (20:39 -0700)]
WebP plugin: fix use of raw '%zu'
03a5c3621e3185e4ca116805317a98cdc8595443 introduced another usage of the format
specifier `%zu` which has some compatibility issues on Windows. This change
switches to what it should have done to begin with, used the compatibility shim.
Matthew Fernandez [Sat, 9 Apr 2022 16:19:15 +0000 (16:19 +0000)]
Merge branch 'smattr/
5CA08F5D -25F7-4765-8FF7-
76F300F4DFD9 ' into 'main'
CMake: enable Rsvg plugin
See merge request graphviz/graphviz!2565
Matthew Fernandez [Thu, 7 Apr 2022 00:49:56 +0000 (17:49 -0700)]
CMake: enable Rsvg plugin
Gitlab: #1836
Matthew Fernandez [Sat, 9 Apr 2022 02:21:35 +0000 (02:21 +0000)]
Merge branch 'smattr/
73694127 -C889-4E10-B8C2-
D161D5177777 ' into 'main'
CMake: enable GDK plugin
See merge request graphviz/graphviz!2560
Matthew Fernandez [Sun, 3 Apr 2022 19:57:24 +0000 (12:57 -0700)]
GDK plugin gdk_loadimage_cairo: squash -Wunused-parameter warning
This parameter cannot be removed because this function is used as a callback.
Matthew Fernandez [Sun, 3 Apr 2022 19:56:15 +0000 (12:56 -0700)]
GDK plugin gdk_format: squash -Wsign-conversion warnings
Matthew Fernandez [Sun, 3 Apr 2022 19:52:32 +0000 (12:52 -0700)]
GDK plugin gdk_format: squash -Wswitch-default warning
The device ID can only be one of the values configured at the bottom of this
file, so this switch is exhaustive.
Matthew Fernandez [Sun, 3 Apr 2022 19:50:56 +0000 (12:50 -0700)]
GDK plugin writer: squash -Wunused-parameter warning
This function is used as a callback so the `error` parameter cannot be removed.
Matthew Fernandez [Sun, 3 Apr 2022 19:50:25 +0000 (12:50 -0700)]
GDK plugin writer: remove an unnecessary cast
Matthew Fernandez [Sun, 3 Apr 2022 19:50:03 +0000 (12:50 -0700)]
GDK plugin writer: abbreviate
Matthew Fernandez [Sun, 3 Apr 2022 19:47:40 +0000 (12:47 -0700)]
GDK plugin argb2rgba: squash -Wconversion warnings
Matthew Fernandez [Sun, 3 Apr 2022 19:08:28 +0000 (12:08 -0700)]
remove unused 'HAVE_GDK_PIXBUF'
Matthew Fernandez [Sun, 3 Apr 2022 19:07:55 +0000 (12:07 -0700)]
remove unused 'HAVE_GDK'
Matthew Fernandez [Sun, 3 Apr 2022 19:03:41 +0000 (12:03 -0700)]
CMake: enable GDK plugin
Gitlab: #1836
Mark Hansen [Fri, 8 Apr 2022 06:52:32 +0000 (06:52 +0000)]
Merge branch 'pinc' into 'main'
Remove unused constant PINC
See merge request graphviz/graphviz!2568
Mark Hansen [Fri, 8 Apr 2022 06:52:23 +0000 (06:52 +0000)]
Merge branch 'remove-dots' into 'main'
Remove now-unreferenced html{n} graphs.
See merge request graphviz/graphviz!2567
Matthew Fernandez [Fri, 8 Apr 2022 03:04:33 +0000 (03:04 +0000)]
Merge branch 'smattr/
D2614CA4 -AE24-4715-86E4-
D53125CA77C4 ' into 'main'
more #2204 progress
See merge request graphviz/graphviz!2557
Matthew Fernandez [Sun, 3 Apr 2022 16:46:12 +0000 (09:46 -0700)]
common: remove unused unistd.h #include
Matthew Fernandez [Sun, 3 Apr 2022 16:30:02 +0000 (09:30 -0700)]
gvpr: remove unnecessary casts
Matthew Fernandez [Sun, 3 Apr 2022 16:13:35 +0000 (09:13 -0700)]
gvc: remove a use of the deprecated 'bcopy'
As the man page for `bcopy` notes:
bcopy() was deprecated in IEEE Std 1003.1-2001 (“POSIX.1”) and removed in
IEEE Std 1003.1-2008 (“POSIX.1”).
Matthew Fernandez [Sun, 3 Apr 2022 16:13:11 +0000 (09:13 -0700)]
gvc: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Sun, 3 Apr 2022 16:06:13 +0000 (09:06 -0700)]
tred: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Fri, 8 Apr 2022 01:41:57 +0000 (01:41 +0000)]
Merge branch 'smattr/
5292DDA9 -FA03-48DB-A0BB-
51A3A04D698E ' into 'main'
CMake: add Glitz plugin
See merge request graphviz/graphviz!2558
Matthew Fernandez [Sun, 3 Apr 2022 19:30:43 +0000 (12:30 -0700)]
remove unused 'HAVE_GLITZ'
Matthew Fernandez [Sun, 3 Apr 2022 19:29:44 +0000 (12:29 -0700)]
CMake: add Glitz plugin
Gitlab: #1836
Matthew Fernandez [Thu, 7 Apr 2022 16:17:41 +0000 (16:17 +0000)]
Merge branch 'unused-result' into 'main'
squash warn_unused_result
See merge request graphviz/graphviz!2556
Costa Shulyupin [Sun, 3 Apr 2022 08:10:56 +0000 (11:10 +0300)]
squash warning in mm_read_unsymmetric_sparse
warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
On success, these functions return the number of input items
successfully matched and assigned; this can be fewer than
provided for, or even zero, in the event of an early
matching failure.
Costa Shulyupin [Sun, 3 Apr 2022 08:10:41 +0000 (11:10 +0300)]
squash warning in SparseMatrix_import_matrix_market/MATRIX_TYPE_COMPLEX
warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
On success, these functions return the number of input items
successfully matched and assigned; this can be fewer than
provided for, or even zero, in the event of an early
matching failure.
Costa Shulyupin [Sun, 3 Apr 2022 08:10:29 +0000 (11:10 +0300)]
squash warning in SparseMatrix_import_matrix_market/MATRIX_TYPE_PATTERN
warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
On success, these functions return the number of input items
successfully matched and assigned; this can be fewer than
provided for, or even zero, in the event of an early
matching failure.
Costa Shulyupin [Sun, 3 Apr 2022 08:08:47 +0000 (11:08 +0300)]
squash warning in SparseMatrix_import_matrix_market/MATRIX_TYPE_INTEGER
warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
On success, these functions return the number of input items
successfully matched and assigned; this can be fewer than
provided for, or even zero, in the event of an early
matching failure.
Costa Shulyupin [Sun, 3 Apr 2022 08:04:41 +0000 (11:04 +0300)]
squash warning in SparseMatrix_import_matrix_market/MATRIX_TYPE_REAL
warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
On success, these functions return the number of input items
successfully matched and assigned; this can be fewer than
provided for, or even zero, in the event of an early
matching failure.
Matthew Fernandez [Thu, 7 Apr 2022 15:03:37 +0000 (15:03 +0000)]
Merge branch 'smattr/
3500F667 -71BC-42B8-990A-
AEE64BF09390 ' into 'main'
CMake: enable Ghostscript plugin
See merge request graphviz/graphviz!2559
Matthew Fernandez [Sun, 3 Apr 2022 20:07:00 +0000 (13:07 -0700)]
Ghostscript plugin gvloadimage_gs_cairo: squash -Wunused-parameter warning
This parameter cannot be removed because this function is used as a callback.
Matthew Fernandez [Sun, 3 Apr 2022 20:06:29 +0000 (13:06 -0700)]
Ghostscript plugin gvloadimage_gs_load: squash -Wsign-compare warning
Matthew Fernandez [Sun, 3 Apr 2022 20:04:57 +0000 (13:04 -0700)]
Ghostscript plugin gs_writer: squash -Wsign-conversion warnings
Matthew Fernandez [Sun, 3 Apr 2022 20:03:47 +0000 (13:03 -0700)]
Ghostscript plugin: remove unnecessary casts
Matthew Fernandez [Sun, 3 Apr 2022 19:39:30 +0000 (12:39 -0700)]
CMake: enable Ghostscript plugin
Gitlab: #1836
Mark Hansen [Thu, 7 Apr 2022 10:29:29 +0000 (20:29 +1000)]
Remove unused constant PINC
All usages seem to be removed.
Mark Hansen [Thu, 7 Apr 2022 07:02:38 +0000 (17:02 +1000)]
Remove now-unreferenced html{n} graphs.
They were moved to graphviz.gitlab.io a while ago, and we don't need two
copies of them.
Now live here:
https://gitlab.com/graphviz/graphviz.gitlab.io/-/tree/main/static/doc/info
Matthew Fernandez [Tue, 5 Apr 2022 05:44:41 +0000 (05:44 +0000)]
Merge branch 'smattr/
6C4DD5DD -DAE3-460A-BF2F-
D4A9DC6EC0E6 ' into 'main'
Windows: remove some unused config items
See merge request graphviz/graphviz!2552
Matthew Fernandez [Sat, 2 Apr 2022 16:07:28 +0000 (09:07 -0700)]
Windows: remove unused 'gid_t' typedef
Matthew Fernandez [Sat, 2 Apr 2022 16:06:39 +0000 (09:06 -0700)]
Windows: remove unused 'X_DISPLAY_MISSING' #define
Matthew Fernandez [Sat, 2 Apr 2022 16:05:56 +0000 (09:05 -0700)]
Windows: remove unused 'PATHSEPARATOR' #define
Matthew Fernandez [Tue, 5 Apr 2022 04:23:22 +0000 (04:23 +0000)]
Merge branch 'smattr/
FFDE9B74 -2C34-4E11-AE12-
C0888E544B11 ' into 'main'
some CMake tidying up
See merge request graphviz/graphviz!2555
Matthew Fernandez [Sat, 2 Apr 2022 18:07:12 +0000 (11:07 -0700)]
CMake: fix missing SO version and MinGW work around in WebP plugin
This should have been included in
645817efcb9926bdd42f3616eb52e8ea5c199283 .
Matthew Fernandez [Sat, 2 Apr 2022 18:03:42 +0000 (11:03 -0700)]
CMake: standardize on always specifying library paths in 'install' steps
Given the differences in how Windows vs everything else treats library vs binary
paths, it seems clearer and less confusing to always specify `RUNTIME`,
`LIBRARY`, and `ARCHIVE` paths during `install` steps. This also avoids
accidentally installing libraries to incorrect paths if they are considered for
installation as dependents of a binary, though I do not know whether this
behavior ever occurs.
Matthew Fernandez [Sat, 2 Apr 2022 18:03:02 +0000 (11:03 -0700)]
CMake: remove 'TOP_BINARY_DIR'
This can be located through standard CMake mechanisms.
Matthew Fernandez [Sat, 2 Apr 2022 17:55:35 +0000 (10:55 -0700)]
CMake: fix a missing dependency in common
Matthew Fernandez [Sat, 2 Apr 2022 17:55:11 +0000 (10:55 -0700)]
CMake: remove 'TOP_SOURCE_DIR'
This can be located through standard CMake mechanisms.
Matthew Fernandez [Sat, 2 Apr 2022 17:45:45 +0000 (10:45 -0700)]
CMake: remove 'GRAPHVIZ_LIB_DIR'
`target_include_directories` supports relative paths that are interpreted
relative to the current source directory. So we can write these paths shorter
and more obviously.
Matthew Fernandez [Tue, 5 Apr 2022 03:01:00 +0000 (03:01 +0000)]
Merge branch 'smattr/
91C61E37 -F5BB-43AD-80B1-
48993359F44D ' into 'main'
GTK plugin: remove unused code and #includes
See merge request graphviz/graphviz!2554
Matthew Fernandez [Sat, 2 Apr 2022 19:34:36 +0000 (12:34 -0700)]
GTK plugin: remove unnecessary casts
Matthew Fernandez [Sat, 2 Apr 2022 19:34:19 +0000 (12:34 -0700)]
GTK plugin: remove unused #includes
Gitlab: #2204
Matthew Fernandez [Sat, 2 Apr 2022 19:33:30 +0000 (12:33 -0700)]
GTK plugin: remove unused 'add_pixmap_directory'
Matthew Fernandez [Sat, 2 Apr 2022 19:30:21 +0000 (12:30 -0700)]
GTK plugin: remove unused 'create_pixmap'
Matthew Fernandez [Sat, 2 Apr 2022 19:28:42 +0000 (12:28 -0700)]
GTK plugin: remove unused 'create_pixbuf'
Matthew Fernandez [Sat, 2 Apr 2022 19:24:31 +0000 (12:24 -0700)]
GTK plugin: remove unused 'glade_set_atk_action_description'
Matthew Fernandez [Tue, 5 Apr 2022 01:39:29 +0000 (01:39 +0000)]
Merge branch 'smattr/
987BF4EC -2F10-420E-A41B-
9C7319942F63 ' into 'main'
acyclic: remove unused unistd.h #include
See merge request graphviz/graphviz!2551
Matthew Fernandez [Sat, 2 Apr 2022 15:08:05 +0000 (08:08 -0700)]
acyclic: squash a -Wswitch-default warning
Matthew Fernandez [Sat, 2 Apr 2022 15:05:57 +0000 (08:05 -0700)]
acyclic: remove unnecessary parens
Matthew Fernandez [Sat, 2 Apr 2022 15:03:49 +0000 (08:03 -0700)]
acyclic: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Mon, 4 Apr 2022 15:52:48 +0000 (15:52 +0000)]
Merge branch 'smattr/
7D15E021 -6096-4341-872C-
AB744E8E5C19 ' into 'main'
gml2gv: remove unused unistd.h #include
See merge request graphviz/graphviz!2553
Matthew Fernandez [Sat, 2 Apr 2022 16:02:31 +0000 (09:02 -0700)]
gml2gv: squash a -Wswitch-default warning
Matthew Fernandez [Sat, 2 Apr 2022 16:01:27 +0000 (09:01 -0700)]
gml2gv: remove unused unistd.h #include
Gitlab: #2204
Matthew Fernandez [Sun, 3 Apr 2022 04:30:43 +0000 (04:30 +0000)]
Merge branch 'smattr/
FC3254B7 -1B42-48E9-AB7D-
9297029D5E2A ' into 'main'
misc cleanup
See merge request graphviz/graphviz!2541
Matthew Fernandez [Tue, 29 Mar 2022 15:27:02 +0000 (08:27 -0700)]
remove 'SMYRNA' #define
This seems unused.
Matthew Fernandez [Tue, 29 Mar 2022 15:23:13 +0000 (08:23 -0700)]
CMake: consolidate Python checks
This essentially removes the conditional check, when an unconditional check was
already being performed later.
Matthew Fernandez [Tue, 29 Mar 2022 15:22:00 +0000 (08:22 -0700)]
standardize some CMake spacing
Matthew Fernandez [Tue, 29 Mar 2022 15:20:33 +0000 (08:20 -0700)]
GDI+ plugin: fix: swap duplicated 'gvwrite' prototypes for a header include
Note that these prototypes were wrong. `gvwrite` takes a `char` pointer not
`unsigned char` pointer, and a `size_t` not `unsigned int` length.
Matthew Fernandez [Tue, 29 Mar 2022 00:07:57 +0000 (17:07 -0700)]
abbreviate some trivial file reads and writes in Python
Matthew Fernandez [Sun, 3 Apr 2022 02:32:29 +0000 (02:32 +0000)]
Merge branch 'smattr/
FE2C3BFC -BD30-47F6-A514-
1367DC81F480 ' into 'main'
tests: suppress Boost deprecation compiler warnings
See merge request graphviz/graphviz!2550
Matthew Fernandez [Sat, 2 Apr 2022 00:25:28 +0000 (17:25 -0700)]
tests: suppress Boost deprecation compiler warnings
The third-party library Svgpp calls Boost in a way that is deprecated, resulting
in compiler warnings during the CMake build. This change teaches CMake that none
of this is our code and we do not want to be warned about it.
Matthew Fernandez [Sun, 3 Apr 2022 00:11:21 +0000 (00:11 +0000)]
Merge branch 'smattr/
70525209 -2ACA-491A-8B14-
E34C24BB7949 ' into 'main'
convert fc-fix.cpp from UTF-16 to UTF-8
See merge request graphviz/graphviz!2548