]> granicus.if.org Git - graphviz/log
graphviz
3 years agoreplace use of NULL in the Visio plugin with more modern nullptr
Matthew Fernandez [Tue, 20 Apr 2021 04:31:41 +0000 (21:31 -0700)]
replace use of NULL in the Visio plugin with more modern nullptr

3 years agomore precisely express inheritance relationship in Path classes
Matthew Fernandez [Tue, 20 Apr 2021 04:28:51 +0000 (21:28 -0700)]
more precisely express inheritance relationship in Path classes

This gives the compiler a greater ability to understand the programmer’s
intentions and diagnose misuse of these classes.

3 years agoremove manual memory management of _points in Path class
Matthew Fernandez [Tue, 20 Apr 2021 04:17:56 +0000 (21:17 -0700)]
remove manual memory management of _points in Path class

3 years agoremove the use of %d to print unsigned integers in the Visio plugin
Matthew Fernandez [Tue, 20 Apr 2021 03:37:02 +0000 (20:37 -0700)]
remove the use of %d to print unsigned integers in the Visio plugin

3 years agoremove Visual Studio options files
Matthew Fernandez [Tue, 20 Apr 2021 03:27:41 +0000 (20:27 -0700)]
remove Visual Studio options files

Quoting the Microsoft docs,¹ “This file should not be checked in to source
code control.”

  ¹ https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-user-options-dot-suo-file?view=vs-2019

3 years agoremove the use of C-style casts to convert void* to Visio::Render*
Matthew Fernandez [Tue, 20 Apr 2021 03:26:32 +0000 (20:26 -0700)]
remove the use of C-style casts to convert void* to Visio::Render*

C-style casts are unnecessarily strong to use here. A reinterpret_cast gives the
compiler a better ability to warn about misuse.

3 years agoMerge 'jfriesne/jaf-fix-uninitialized-memory-read-in-call-try' into main
Matthew Fernandez [Mon, 26 Apr 2021 02:50:39 +0000 (19:50 -0700)]
Merge 'jfriesne/jaf-fix-uninitialized-memory-read-in-call-try' into main

3 years agoadd a changelog entry for prior commit
Matthew Fernandez [Mon, 26 Apr 2021 02:50:07 +0000 (19:50 -0700)]
add a changelog entry for prior commit

3 years agoFix for uninitialized-memory-read in call_tri() that would occur after delaunay_tri...
Jeremy Friesner [Tue, 20 Apr 2021 00:17:29 +0000 (17:17 -0700)]
Fix for uninitialized-memory-read in call_tri() that would occur after delaunay_tri() returned NULL and never set numberofedges to anything

3 years agoMerge branch 'smattr/d0423bd6-65fb-4d10-abf7-905a337bab9e' into 'main'
Matthew Fernandez [Sun, 25 Apr 2021 20:58:40 +0000 (20:58 +0000)]
Merge branch 'smattr/d0423bd6-65fb-4d10-abf7-905a337bab9e' into 'main'

more warning squashing in cmd/smyrna

See merge request graphviz/graphviz!1910

3 years agoremove unused display function
Matthew Fernandez [Mon, 19 Apr 2021 00:53:59 +0000 (17:53 -0700)]
remove unused display function

3 years agofix type of variable used for interacting with getopt
Matthew Fernandez [Mon, 19 Apr 2021 00:52:45 +0000 (17:52 -0700)]
fix type of variable used for interacting with getopt

Fixes some -Wsign-conversion and -Wsign-compare warnings.

3 years agoremove unused modefile parameter to load_mouse_actions
Matthew Fernandez [Mon, 19 Apr 2021 00:51:31 +0000 (17:51 -0700)]
remove unused modefile parameter to load_mouse_actions

3 years agoremove commented out code
Matthew Fernandez [Mon, 19 Apr 2021 00:50:12 +0000 (17:50 -0700)]
remove commented out code

3 years agofix some incorrect function return type definitions
Matthew Fernandez [Mon, 19 Apr 2021 00:48:34 +0000 (17:48 -0700)]
fix some incorrect function return type definitions

Squashes a number of -Wold-style-declaration warnings.

3 years agosquash -Wunused-parameter warnings in outfn
Matthew Fernandez [Mon, 19 Apr 2021 00:46:37 +0000 (17:46 -0700)]
squash -Wunused-parameter warnings in outfn

3 years agosquash -Wunused-parameter warnings in on_dlgOpenGraph_btnOK_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:45:06 +0000 (17:45 -0700)]
squash -Wunused-parameter warnings in on_dlgOpenGraph_btnOK_clicked

3 years agosquash -Wunused-parameter warning in dlgOpenGraph_OK_Clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:44:36 +0000 (17:44 -0700)]
squash -Wunused-parameter warning in dlgOpenGraph_OK_Clicked

3 years agosquash -Wunused-parameter warnings in save_graph_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:43:58 +0000 (17:43 -0700)]
squash -Wunused-parameter warnings in save_graph_clicked

3 years agoabbreviate an increment
Matthew Fernandez [Mon, 19 Apr 2021 00:39:54 +0000 (17:39 -0700)]
abbreviate an increment

3 years agosquash -Wunused-parameter warnings in on_consoleincbtn_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:39:37 +0000 (17:39 -0700)]
squash -Wunused-parameter warnings in on_consoleincbtn_clicked

3 years agoabbreviate a decrement
Matthew Fernandez [Mon, 19 Apr 2021 00:39:11 +0000 (17:39 -0700)]
abbreviate a decrement

3 years agosquash -Wunused-parameter warnings in on_consoledecbtn_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:38:53 +0000 (17:38 -0700)]
squash -Wunused-parameter warnings in on_consoledecbtn_clicked

3 years agosquash -Wunused-parameter warnings in on_hideconsolebtn_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:38:22 +0000 (17:38 -0700)]
squash -Wunused-parameter warnings in on_hideconsolebtn_clicked

3 years agosquash -Wunused-parameter warnings in on_clearconsolebtn_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:37:56 +0000 (17:37 -0700)]
squash -Wunused-parameter warnings in on_clearconsolebtn_clicked

3 years agosquash -Wunused-parameter warnings in frmObjectBtnCancel_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:37:09 +0000 (17:37 -0700)]
squash -Wunused-parameter warnings in frmObjectBtnCancel_clicked

3 years agosquash -Wunused-parameter warnings in frmObjectBtnOK_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:36:35 +0000 (17:36 -0700)]
squash -Wunused-parameter warnings in frmObjectBtnOK_clicked

3 years agosquash -Wunused-parameter warning in frmObject_set_scroll
Matthew Fernandez [Mon, 19 Apr 2021 00:36:00 +0000 (17:36 -0700)]
squash -Wunused-parameter warning in frmObject_set_scroll

3 years agosquash -Wunused-parameter warning in attr_widgets_modifiedSlot
Matthew Fernandez [Mon, 19 Apr 2021 00:34:14 +0000 (17:34 -0700)]
squash -Wunused-parameter warning in attr_widgets_modifiedSlot

3 years agosquash -Wunused-parameter warnings in on_dlgOpenGraph_btncancel_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:33:44 +0000 (17:33 -0700)]
squash -Wunused-parameter warnings in on_dlgOpenGraph_btncancel_clicked

3 years agosquash -Wunused-parameter warnings in on_newNode
Matthew Fernandez [Mon, 19 Apr 2021 00:33:09 +0000 (17:33 -0700)]
squash -Wunused-parameter warnings in on_newNode

3 years agoremove useless memory leak
Matthew Fernandez [Mon, 19 Apr 2021 00:32:14 +0000 (17:32 -0700)]
remove useless memory leak

It is unclear what this code was attempting to achieve. It allocated memory and
then immediately lost the pointers to this memory.

3 years agosquash -Wunused-parameter warning in btn_fdp_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:31:41 +0000 (17:31 -0700)]
squash -Wunused-parameter warning in btn_fdp_clicked

3 years agosquash -Wunused-parameter warning in btn_circo_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:31:21 +0000 (17:31 -0700)]
squash -Wunused-parameter warning in btn_circo_clicked

3 years agosquash -Wunused-parameter warning in btn_twopi_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:31:02 +0000 (17:31 -0700)]
squash -Wunused-parameter warning in btn_twopi_clicked

3 years agosquash -Wunused-parameter warning in btn_neato_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:30:35 +0000 (17:30 -0700)]
squash -Wunused-parameter warning in btn_neato_clicked

3 years agosquash -Wunused-parameter warning in btn_dot_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:30:12 +0000 (17:30 -0700)]
squash -Wunused-parameter warning in btn_dot_clicked

3 years agosquash -Wunused-parameter warnings in btn_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:29:43 +0000 (17:29 -0700)]
squash -Wunused-parameter warnings in btn_clicked

3 years agosquash -Wunused-parameter warnings in remove_graph_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:29:18 +0000 (17:29 -0700)]
squash -Wunused-parameter warnings in remove_graph_clicked

3 years agosquash -Wunused-parameter warnings in save_as_graph_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:28:50 +0000 (17:28 -0700)]
squash -Wunused-parameter warnings in save_as_graph_clicked

3 years agosquash -Wunused-parameter warnings in open_graph_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:28:03 +0000 (17:28 -0700)]
squash -Wunused-parameter warnings in open_graph_clicked

3 years agosquash -Wunused-parameter warnings in new_graph_clicked
Matthew Fernandez [Mon, 19 Apr 2021 00:27:37 +0000 (17:27 -0700)]
squash -Wunused-parameter warnings in new_graph_clicked

3 years agoremove curse word from comment
Matthew Fernandez [Mon, 19 Apr 2021 00:26:47 +0000 (17:26 -0700)]
remove curse word from comment

There's no need for this in the code base.

3 years agosquash -Wunused-parameter warning in motion_notify_event
Matthew Fernandez [Mon, 19 Apr 2021 00:25:16 +0000 (17:25 -0700)]
squash -Wunused-parameter warning in motion_notify_event

3 years agoremove unused key parameter to appmouse_key_release
Matthew Fernandez [Mon, 19 Apr 2021 00:24:04 +0000 (17:24 -0700)]
remove unused key parameter to appmouse_key_release

3 years agoremove no-op functions appmouse_left_click, appmouse_right_click
Matthew Fernandez [Mon, 19 Apr 2021 00:17:47 +0000 (17:17 -0700)]
remove no-op functions appmouse_left_click, appmouse_right_click

This squashes some -Wunused-parameter warnings.

3 years agosquash -Wunused parameter warnings in scroll_event
Matthew Fernandez [Mon, 19 Apr 2021 00:15:47 +0000 (17:15 -0700)]
squash -Wunused parameter warnings in scroll_event

3 years agosquash -Wunused-parameter warnings in key_release_event
Matthew Fernandez [Mon, 19 Apr 2021 00:11:48 +0000 (17:11 -0700)]
squash -Wunused-parameter warnings in key_release_event

3 years agosquash -Wunused-parameter warnings in key_press_event
Matthew Fernandez [Mon, 19 Apr 2021 00:11:22 +0000 (17:11 -0700)]
squash -Wunused-parameter warnings in key_press_event

3 years agoremove some excess white space
Matthew Fernandez [Mon, 19 Apr 2021 00:10:53 +0000 (17:10 -0700)]
remove some excess white space

3 years agosquash -Wunused-parameter warnings in button_release_event
Matthew Fernandez [Mon, 19 Apr 2021 00:10:14 +0000 (17:10 -0700)]
squash -Wunused-parameter warnings in button_release_event

3 years agosquash -Wunused-parameter warnings in button_press_event
Matthew Fernandez [Mon, 19 Apr 2021 00:09:22 +0000 (17:09 -0700)]
squash -Wunused-parameter warnings in button_press_event

3 years agoremove unused variable in button_press_event
Matthew Fernandez [Mon, 19 Apr 2021 00:08:32 +0000 (17:08 -0700)]
remove unused variable in button_press_event

3 years agosquash -Wunused-parameter warnings in expose_event
Matthew Fernandez [Mon, 19 Apr 2021 00:07:31 +0000 (17:07 -0700)]
squash -Wunused-parameter warnings in expose_event

3 years agosquash -Wunused-parameter warnings in configure_event
Matthew Fernandez [Mon, 19 Apr 2021 00:06:17 +0000 (17:06 -0700)]
squash -Wunused-parameter warnings in configure_event

3 years agosquash -Wunused-parameter warning in realize
Matthew Fernandez [Mon, 19 Apr 2021 00:05:37 +0000 (17:05 -0700)]
squash -Wunused-parameter warning in realize

3 years agoremove non-existent directory from Smyrna Makefile
Matthew Fernandez [Sun, 18 Apr 2021 23:58:05 +0000 (16:58 -0700)]
remove non-existent directory from Smyrna Makefile

Squashes some -Wmissing-include-dir warnings.

3 years agosquash some -Wfloat-conversion warnings
Matthew Fernandez [Sun, 18 Apr 2021 23:50:38 +0000 (16:50 -0700)]
squash some -Wfloat-conversion warnings

3 years agosquash a -Wfloat-conversion warning
Matthew Fernandez [Sun, 18 Apr 2021 23:49:14 +0000 (16:49 -0700)]
squash a -Wfloat-conversion warning

3 years agosquash a -Wfloat-conversion warning
Matthew Fernandez [Sun, 18 Apr 2021 23:48:31 +0000 (16:48 -0700)]
squash a -Wfloat-conversion warning

3 years agoremove shadowing of view in glexpose_main
Matthew Fernandez [Sun, 18 Apr 2021 23:46:35 +0000 (16:46 -0700)]
remove shadowing of view in glexpose_main

3 years agoremove shadowing of view in glexpose_drawgraph
Matthew Fernandez [Sun, 18 Apr 2021 23:45:57 +0000 (16:45 -0700)]
remove shadowing of view in glexpose_drawgraph

3 years agoremove shadowing of view in glexpose_grid
Matthew Fernandez [Sun, 18 Apr 2021 23:45:11 +0000 (16:45 -0700)]
remove shadowing of view in glexpose_grid

3 years agoremove shadowing of view in glupdatecamera
Matthew Fernandez [Sun, 18 Apr 2021 23:44:21 +0000 (16:44 -0700)]
remove shadowing of view in glupdatecamera

3 years agoremove shadowing of view in drawBorders
Matthew Fernandez [Sun, 18 Apr 2021 23:41:01 +0000 (16:41 -0700)]
remove shadowing of view in drawBorders

3 years agoMerge branch 'smattr/41d547b2-c0af-430e-a0f6-df23eaa36b37' into 'main'
Matthew Fernandez [Sat, 24 Apr 2021 21:55:22 +0000 (21:55 +0000)]
Merge branch 'smattr/41d547b2-c0af-430e-a0f6-df23eaa36b37' into 'main'

remove more manual memory management in lib/vpsc

See merge request graphviz/graphviz!1909

3 years agoreplace vpsc uses of NULL with more modern nullptr
Matthew Fernandez [Sun, 18 Apr 2021 20:17:00 +0000 (13:17 -0700)]
replace vpsc uses of NULL with more modern nullptr

3 years agouse range-based for loops to abbreviate some manual iteration
Matthew Fernandez [Sun, 18 Apr 2021 20:08:31 +0000 (13:08 -0700)]
use range-based for loops to abbreviate some manual iteration

3 years agomanage NodeSets by value instead of pointer
Matthew Fernandez [Sun, 18 Apr 2021 20:03:36 +0000 (13:03 -0700)]
manage NodeSets by value instead of pointer

There is no need to manually allocate memory for these sets. We can simply let
the compiler take care of this. Note that this is also unlikely to affect the
performance characteristics of getLeftNeighbours and getRightNeighbours because
Named Return Value Optimization (NRVO) is applicable to these functions.

3 years agomark getRightNeighbours static
Matthew Fernandez [Sun, 18 Apr 2021 19:55:08 +0000 (12:55 -0700)]
mark getRightNeighbours static

This is not used outside of its containing file.

3 years agomake getLeftNeighbours static
Matthew Fernandez [Sun, 18 Apr 2021 19:54:50 +0000 (12:54 -0700)]
make getLeftNeighbours static

This is not used outside of its containing file.

3 years agoMerge branch 'smattr/4984C046-2548-442C-9D61-CC86DF57501E' into 'main'
Matthew Fernandez [Sat, 24 Apr 2021 21:11:55 +0000 (21:11 +0000)]
Merge branch 'smattr/4984C046-2548-442C-9D61-CC86DF57501E' into 'main'

clean up and warning squashing in lib/neatogen

See merge request graphviz/graphviz!1908

3 years agoremove unused parameter to mds_model
Matthew Fernandez [Sun, 18 Apr 2021 05:59:18 +0000 (22:59 -0700)]
remove unused parameter to mds_model

3 years agoremove unused parameter from majorization
Matthew Fernandez [Sun, 18 Apr 2021 05:58:19 +0000 (22:58 -0700)]
remove unused parameter from majorization

3 years agoremove shadowing of i in majorization
Matthew Fernandez [Sun, 18 Apr 2021 05:54:29 +0000 (22:54 -0700)]
remove shadowing of i in majorization

3 years agoabbreviate an increment
Matthew Fernandez [Sun, 18 Apr 2021 05:41:18 +0000 (22:41 -0700)]
abbreviate an increment

3 years agoremove some commented out code
Matthew Fernandez [Sun, 18 Apr 2021 05:23:48 +0000 (22:23 -0700)]
remove some commented out code

3 years agoremove function pointer noise
Matthew Fernandez [Sun, 18 Apr 2021 05:17:46 +0000 (22:17 -0700)]
remove function pointer noise

When calling through a function pointer in C, you do not need to explicitly
dereference it. The compiler understands how to deal with these addressing
complications.

3 years agoreflow some text
Matthew Fernandez [Sun, 18 Apr 2021 05:13:53 +0000 (22:13 -0700)]
reflow some text

3 years agouse a stronger return type for PQempty
Matthew Fernandez [Sun, 18 Apr 2021 05:07:57 +0000 (22:07 -0700)]
use a stronger return type for PQempty

3 years agoabbreviate an increment
Matthew Fernandez [Sun, 18 Apr 2021 05:05:02 +0000 (22:05 -0700)]
abbreviate an increment

3 years agoabbreviate an increment
Matthew Fernandez [Sun, 18 Apr 2021 05:04:46 +0000 (22:04 -0700)]
abbreviate an increment

3 years agoabbreviate a decrement
Matthew Fernandez [Sun, 18 Apr 2021 05:04:34 +0000 (22:04 -0700)]
abbreviate a decrement

3 years agoabbreviate an increment
Matthew Fernandez [Sun, 18 Apr 2021 05:04:23 +0000 (22:04 -0700)]
abbreviate an increment

3 years agoremove unnecessary bracketing
Matthew Fernandez [Sun, 18 Apr 2021 05:02:20 +0000 (22:02 -0700)]
remove unnecessary bracketing

3 years agoremove some no-op casts
Matthew Fernandez [Sun, 18 Apr 2021 05:00:17 +0000 (22:00 -0700)]
remove some no-op casts

These pointers implicitly coerce.

3 years agosquash two -Wfloat-conversion warnings
Matthew Fernandez [Sun, 18 Apr 2021 04:56:43 +0000 (21:56 -0700)]
squash two -Wfloat-conversion warnings

3 years agoremove unnecessary dynamic allocation
Matthew Fernandez [Sun, 18 Apr 2021 04:49:56 +0000 (21:49 -0700)]
remove unnecessary dynamic allocation

Using the heap for a statically-known array of two pointers is inefficient. This
can just be stack-allocated, improving the compiler’s visibility and ability to
optimize. Removes a -Wsign-conversion compiler warning.

3 years agotreat SEPFACT as a float
Matthew Fernandez [Sun, 18 Apr 2021 04:42:57 +0000 (21:42 -0700)]
treat SEPFACT as a float

This constant is only ever used as a float, but triggers warnings because 0.8
cannot be precisely expressed as a 32-bit IEEE float. If we want to use the
closest 32-bit float to 0.8 let's just say so. This change squashes 3
-Wfloat-conversion warnings.

3 years agoremove -Wshadow warning related to margin
Matthew Fernandez [Sun, 18 Apr 2021 04:34:32 +0000 (21:34 -0700)]
remove -Wshadow warning related to margin

3 years agoremove unused parameter from updateGraph
Matthew Fernandez [Sun, 18 Apr 2021 04:28:40 +0000 (21:28 -0700)]
remove unused parameter from updateGraph

3 years agoremove now-unused local variable in sAdjust
Matthew Fernandez [Sun, 18 Apr 2021 04:24:07 +0000 (21:24 -0700)]
remove now-unused local variable in sAdjust

3 years agoremove unused dim parameter to makeMatrix
Matthew Fernandez [Sun, 18 Apr 2021 04:23:46 +0000 (21:23 -0700)]
remove unused dim parameter to makeMatrix

3 years agoremove some unnecessary bracketing
Matthew Fernandez [Sun, 18 Apr 2021 04:13:06 +0000 (21:13 -0700)]
remove some unnecessary bracketing

3 years agoremove useless cast
Matthew Fernandez [Sun, 18 Apr 2021 03:59:59 +0000 (20:59 -0700)]
remove useless cast

fabs already returns a double, and type promotion results in a double result
from the division.

3 years agoremove noise in nextOne
Matthew Fernandez [Sun, 18 Apr 2021 03:55:26 +0000 (20:55 -0700)]
remove noise in nextOne

3 years agoremove unused parameter from rePos
Matthew Fernandez [Sun, 18 Apr 2021 03:53:21 +0000 (20:53 -0700)]
remove unused parameter from rePos

3 years agopush declarations in chkBoundBox closer to their use
Matthew Fernandez [Sun, 18 Apr 2021 03:40:37 +0000 (20:40 -0700)]
push declarations in chkBoundBox closer to their use

3 years agoremove commented out code
Matthew Fernandez [Sun, 18 Apr 2021 03:38:31 +0000 (20:38 -0700)]
remove commented out code

3 years agoremove shadowing of ymax
Matthew Fernandez [Sun, 18 Apr 2021 03:36:07 +0000 (20:36 -0700)]
remove shadowing of ymax