]>
granicus.if.org Git - graphviz/log
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
Matthew Fernandez [Fri, 1 Apr 2022 00:41:55 +0000 (17:41 -0700)]
clang-format fc-fix.cpp
Given the prior commit rewrote every byte in this file, we may as well also fix
the odd white space decisions here while we are at it. Though it is unclear who
if anyone uses this tool any more.
Matthew Fernandez [Fri, 1 Apr 2022 00:35:15 +0000 (17:35 -0700)]
convert fc-fix.cpp from UTF-16 to UTF-8
Of all the source files in the Graphviz tree, this file alone was encoded in
UTF-16 with a BOM.¹ BOMs have mostly fallen out of favor these days, with people
preferring to let the host operating system or locale determine encoding. Git
will happily translate text files to your local encoding on checkout. With that
in mind, we can convert this file to UTF-8 and stop forcing developers on other
operating systems to pay the price for Windows’ poor past decisions.
¹ https://en.wikipedia.org/wiki/Byte_order_mark
Matthew Fernandez [Sat, 2 Apr 2022 22:46:32 +0000 (22:46 +0000)]
Merge branch 'smattr/
7C359EA7 -F1EE-4BAD-A23C-
32490FAF859B ' into 'main'
Xlib plugin, vimdot: Squash all warnings and enable in the CMake build system
See merge request graphviz/graphviz!2547
Matthew Fernandez [Wed, 30 Mar 2022 02:38:58 +0000 (19:38 -0700)]
CMake: enable xlib plugin and 'vimdot'
Gitlab: #1836
Matthew Fernandez [Thu, 31 Mar 2022 00:54:39 +0000 (17:54 -0700)]
xlib plugin xlib_initialize: squash a -Wsign-conversion warning
Matthew Fernandez [Thu, 31 Mar 2022 00:52:54 +0000 (17:52 -0700)]
xlib plugin init_window: squash a -Wsign-conversion warning
Matthew Fernandez [Thu, 31 Mar 2022 00:24:16 +0000 (17:24 -0700)]
xlib plugin handle_file_events: squash a -Wsign-conversion warning
Matthew Fernandez [Thu, 31 Mar 2022 00:21:22 +0000 (17:21 -0700)]
xlib plugin handle_file_events: rephrase a switch into an if
Avoids a -Wswitch-default warnings and simplifies the code that was clearly
indicating an intent to ignore everything except `IN_MODIFY`.
Matthew Fernandez [Thu, 31 Mar 2022 00:18:19 +0000 (17:18 -0700)]
xlib plugin handle_file_events: fix some misuse of types
Matthew Fernandez [Thu, 31 Mar 2022 00:16:20 +0000 (17:16 -0700)]
xlib plugin handle_file_events: more tightly scope a long-lived dynamic buffer
This buffer was being retained in a long-lived `static` pointer, increasing peak
memory usage and making it harder to use tools like Valgrind and ASan with
Graphviz. This change makes it more obvious to both users and tools what this
buffer is used for.
Note this also tweaks an error message to be more informative.
Matthew Fernandez [Thu, 31 Mar 2022 00:09:41 +0000 (17:09 -0700)]
xlib plugin handle_file_events: remove unnecessary cast and '&'
The `name` member of the `inotify_event` struct is a character array.
Matthew Fernandez [Wed, 30 Mar 2022 15:31:11 +0000 (08:31 -0700)]
xlib plugin handle_stdin_events: remove unused 'stdin_fd' parameter
Matthew Fernandez [Wed, 30 Mar 2022 15:30:24 +0000 (08:30 -0700)]
xlib plugin init_window: squash -Wsign-conversion warning for window depth
Matthew Fernandez [Wed, 30 Mar 2022 15:28:37 +0000 (08:28 -0700)]
xlib plugin init_window: squash -Wsign-conversion warnings for job
Matthew Fernandez [Wed, 30 Mar 2022 15:26:36 +0000 (08:26 -0700)]
xlib plugin update_display: squash -Wsign-conversion warning for window depth
Matthew Fernandez [Wed, 30 Mar 2022 15:25:28 +0000 (08:25 -0700)]
xlib plugin update_display: squash -Wsign-conversion warnings for job
Matthew Fernandez [Wed, 30 Mar 2022 15:20:48 +0000 (08:20 -0700)]
xlib plugin handle_xlib_events: squash -Wswitch-default warning
This switch is deliberately only handling the events of relevance to it.
Matthew Fernandez [Wed, 30 Mar 2022 15:17:43 +0000 (08:17 -0700)]
xlib plugin handle_xlib_events: squash -Wsign-conversion warnings
The Xlib API¹ claims to only return buttons 1-5.
¹ See the table in
https://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html#Keyboard_and_Pointer_Events_b
Matthew Fernandez [Wed, 30 Mar 2022 15:10:47 +0000 (08:10 -0700)]
xlib plugin handle_expose: squash -Wsign-conversion warnings
Matthew Fernandez [Wed, 30 Mar 2022 05:00:51 +0000 (22:00 -0700)]
CMake: fix fcntl.h detection
This seems to have gone unnoticed because none of the Graphviz components
currently integrated into the CMake build system rely critically on fcntl.h.
This issue was discovered when integrating the xlib plugin.
Matthew Fernandez [Wed, 30 Mar 2022 02:39:54 +0000 (19:39 -0700)]
CMake: drop some conditional pkgconf logic in glcomp
pkgconf has already been unconditionally required prior to these lines.
Matthew Fernandez [Wed, 30 Mar 2022 14:58:01 +0000 (07:58 -0700)]
CMake: standardize on lowercase for functions
Matthew Fernandez [Wed, 30 Mar 2022 14:56:38 +0000 (07:56 -0700)]
add Gentoo and David Seifert to downstream packaging list
Matthew Fernandez [Sat, 2 Apr 2022 19:51:49 +0000 (19:51 +0000)]
Merge branch 'fix-uninitialized-variables' into 'main'
fix some uninitialized variables
See merge request graphviz/graphviz!2536
Costa Shulyupin [Sun, 27 Mar 2022 04:10:40 +0000 (07:10 +0300)]
pango: initialize a variable
Squash
warning: ‘availfaces’ may be used uninitialized in this function
Actually uninitialized value is not used because it is used
in pair with family_name, but compiler still complains.
So just add initializtion.
Costa Shulyupin [Sun, 27 Mar 2022 04:09:51 +0000 (07:09 +0300)]
gvpr: initialize a variable
Squash
warning: ‘alpha’ may be used uninitialized in this function
One branch of conditional statement leaves variable alpha
uninitialized. Actually uninitialized value is not used,
but compiler still complains. So just add one assignment to
assumed 0.
BTW, the code can be refactored and shortened.
But it is preferable to just minimize the changes.
Costa Shulyupin [Sun, 27 Mar 2022 04:08:50 +0000 (07:08 +0300)]
dotgen: initialize a variable
warning: ‘maxthispass’ may be used uninitialized in this function
Costa Shulyupin [Sun, 27 Mar 2022 04:07:38 +0000 (07:07 +0300)]
tools: initialize a variable
Squashing
warning: ‘sym’ may be used uninitialized in this function
Here was no real usage of uninitialized variable, but
compiler still complains.
Pointer sym is allocated when flag with_val is set:
if (with_val) {
sym = agattr(g, AGEDGE, "len", "1");
}
So just squash the warning by setting the
pointer to NULL and test it in guard condition
instead of testing the flag:
if (sym && val) {
sprintf(buf, "%f", val[j]);
agxset(e, sym, buf);
}
Costa Shulyupin [Sun, 27 Mar 2022 03:51:12 +0000 (06:51 +0300)]
htmltable: initialize a variable
Squash
warning: ‘mxysize’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Matthew Fernandez [Sat, 2 Apr 2022 18:52:08 +0000 (18:52 +0000)]
Merge branch 'smattr/
3404C6B4 -EB48-44F0-8CD6-
983567F718EC ' into 'main'
gvgen: remove unused unistd.h #include
See merge request graphviz/graphviz!2543
Matthew Fernandez [Wed, 30 Mar 2022 04:18:39 +0000 (21:18 -0700)]
gvgen makeTreeGen: squash a 'time_t'→'unsigned' conversion warning
Matthew Fernandez [Wed, 30 Mar 2022 04:17:48 +0000 (21:17 -0700)]
gvgen makeRandom: squash a 'time_t'→'unsigned' conversion warning