]> granicus.if.org Git - graphviz/log
graphviz
3 years agosquash some -Wunused-parameter warnings
Matthew Fernandez [Wed, 28 Apr 2021 04:08:29 +0000 (21:08 -0700)]
squash some -Wunused-parameter warnings

3 years agouse stronger types for dijkstra command line flags
Matthew Fernandez [Wed, 28 Apr 2021 04:04:25 +0000 (21:04 -0700)]
use stronger types for dijkstra command line flags

3 years agofree some allocated memory prior to exiting dijkstra
Matthew Fernandez [Wed, 28 Apr 2021 03:58:44 +0000 (20:58 -0700)]
free some allocated memory prior to exiting dijkstra

This is not strictly necessary, but aids debugging with tools like Valgrind.

3 years agoremove the use of 0 for pointers in dijkstra
Matthew Fernandez [Wed, 28 Apr 2021 03:55:47 +0000 (20:55 -0700)]
remove the use of 0 for pointers in dijkstra

3 years agouse calloc instead of malloc for some arrays in dijkstra
Matthew Fernandez [Wed, 28 Apr 2021 03:53:49 +0000 (20:53 -0700)]
use calloc instead of malloc for some arrays in dijkstra

3 years agoremove use of HUGE
Matthew Fernandez [Wed, 28 Apr 2021 03:51:32 +0000 (20:51 -0700)]
remove use of HUGE

HUGE_VAL is standard C, portable across environments.

3 years agoremove some commented out code
Matthew Fernandez [Wed, 28 Apr 2021 03:50:53 +0000 (20:50 -0700)]
remove some commented out code

3 years agoMerge branch 'smattr/6d5c1473-c70e-45ad-81b8-5a6386ba2986' into 'main'
Matthew Fernandez [Mon, 3 May 2021 15:03:40 +0000 (15:03 +0000)]
Merge branch 'smattr/6d5c1473-c70e-45ad-81b8-5a6386ba2986' into 'main'

add a test case to keep .vcxproj and .vcxproj.filters sources in sync

See merge request graphviz/graphviz!1932

3 years agoadd a test case to keep .vcxproj and .vcxproj.filters sources in sync
Matthew Fernandez [Tue, 27 Apr 2021 02:38:01 +0000 (19:38 -0700)]
add a test case to keep .vcxproj and .vcxproj.filters sources in sync

Inspired by reviewing !1925, I realized there are few safeguards for those of us
editing the .vcxproj files while not on Windows. This commit introduces a basic
seatbelt to try to keep these files in sync. In future we could extend this to
check for file existence and other consistency.

3 years agoMerge branch 'tred' into 'main'
Matthew Fernandez [Sun, 2 May 2021 16:04:57 +0000 (16:04 +0000)]
Merge branch 'tred' into 'main'

GVC: export 'gvToolTred'

Closes #2057

See merge request graphviz/graphviz!1925

3 years agoGVC: export 'gvToolTred'
Saleem Abdulrasool [Sun, 2 May 2021 16:04:57 +0000 (16:04 +0000)]
GVC: export 'gvToolTred'

3 years agoMerge branch 'close-the-door' into 'main'
Matthew Fernandez [Sun, 2 May 2021 04:02:54 +0000 (04:02 +0000)]
Merge branch 'close-the-door' into 'main'

xdot: remove unused Windows.h header

See merge request graphviz/graphviz!1930

3 years agoxdot: remove unused Windows.h header
Saleem Abdulrasool [Mon, 26 Apr 2021 02:45:47 +0000 (19:45 -0700)]
xdot: remove unused Windows.h header

This header is unused and does not need to be included.  Although for
most uses this does not impact anything, attempting to use this in a
Swift program causes problems due to the library being pulled into a
modular build.  This removal allows the use of xdot in Swift.

3 years agoMerge branch 'smattr/3C4AE1AF-408F-4CB2-9F54-0457CE6C3F52' into 'main'
Matthew Fernandez [Sun, 2 May 2021 02:44:34 +0000 (02:44 +0000)]
Merge branch 'smattr/3C4AE1AF-408F-4CB2-9F54-0457CE6C3F52' into 'main'

remove unused lib/inkpot

Closes #2054

See merge request graphviz/graphviz!1929

3 years agoremove some non-existent paths from MSVC include directories
Matthew Fernandez [Sun, 25 Apr 2021 23:25:03 +0000 (16:25 -0700)]
remove some non-existent paths from MSVC include directories

The reference directories were previously removed.

3 years agoremove unused lib/inkpot
Matthew Fernandez [Sun, 25 Apr 2021 23:22:00 +0000 (16:22 -0700)]
remove unused lib/inkpot

Closes #2054.

3 years agoMerge branch 'smattr/AB2A899C-BF99-4303-82F9-79AA1D1078F8' into 'main'
Matthew Fernandez [Sat, 1 May 2021 23:28:09 +0000 (23:28 +0000)]
Merge branch 'smattr/AB2A899C-BF99-4303-82F9-79AA1D1078F8' into 'main'

try to work around `lneato -?` flakiness on Windows

See merge request graphviz/graphviz!1928

3 years agotry to work around `lneato -?` flakiness on Windows
Matthew Fernandez [Sun, 25 Apr 2021 21:48:03 +0000 (14:48 -0700)]
try to work around `lneato -?` flakiness on Windows

Related to #1934.

3 years agoMerge branch 'smattr/880181C2-61D1-421D-9FA4-B15E4A19C741' into 'main'
Matthew Fernandez [Sat, 1 May 2021 22:30:58 +0000 (22:30 +0000)]
Merge branch 'smattr/880181C2-61D1-421D-9FA4-B15E4A19C741' into 'main'

remove /etc/redhat-release path in build script

See merge request graphviz/graphviz!1921

3 years agoremove /etc/redhat-release path in build script
Matthew Fernandez [Sat, 24 Apr 2021 18:10:15 +0000 (11:10 -0700)]
remove /etc/redhat-release path in build script

Every distro Graphviz CI now runs on appears to have an /etc/os-release, so this
code is unused.

3 years agoMerge branch 'smattr/3E2C5588-8462-437B-9A7B-2ADA9D63769C' into 'main'
Matthew Fernandez [Sat, 1 May 2021 19:00:04 +0000 (19:00 +0000)]
Merge branch 'smattr/3E2C5588-8462-437B-9A7B-2ADA9D63769C' into 'main'

clean up "#xxxxxx" color printing

See merge request graphviz/graphviz!1918

3 years agoabbreviate r2hex in lib/sparse
Matthew Fernandez [Sat, 24 Apr 2021 16:29:25 +0000 (09:29 -0700)]
abbreviate r2hex in lib/sparse

This is a shorter way of writing the same thing.

3 years agosimplify color printing in lib/sparse
Matthew Fernandez [Sat, 24 Apr 2021 16:26:30 +0000 (09:26 -0700)]
simplify color printing in lib/sparse

Equivalent of the previous commit, but applied to another function which is a
duplicate.

3 years agosimplify color printing in mm2gv
Matthew Fernandez [Sat, 24 Apr 2021 16:24:48 +0000 (09:24 -0700)]
simplify color printing in mm2gv

This is a shorter, more efficient way to accomplish the same thing.

3 years agoMerge branch 'smattr/747D40FC-E73B-4D36-A74A-99425E25AD8A' into 'main'
Matthew Fernandez [Sat, 1 May 2021 18:16:11 +0000 (18:16 +0000)]
Merge branch 'smattr/747D40FC-E73B-4D36-A74A-99425E25AD8A' into 'main'

remove assumption in Windows builds that python3.exe exists

Closes #2049

See merge request graphviz/graphviz!1920

3 years agoremove python3.exe copying in Windows CI
Matthew Fernandez [Sat, 24 Apr 2021 19:00:05 +0000 (12:00 -0700)]
remove python3.exe copying in Windows CI

With the prior couple of changes, neither the Windows build nor the test suite
relies on a python3.exe binary. So we can simplify Windows CI by removing these
steps, leaving only a python.exe binary. This is more reflective of the typical
environment a user will have too. Related to #2049.

3 years agocall Python as `python` instead of `python3` in MSBuild files
Matthew Fernandez [Sat, 24 Apr 2021 20:14:26 +0000 (13:14 -0700)]
call Python as `python` instead of `python3` in MSBuild files

This removes an assumption from these files that Python 3 is available as
`python3`. On a Windows system, it is typically python.exe and users have to
create their own python3.exe if they want to call it under this name. Related to
#2049.

3 years agouse CMake support to locate Python 3 before calling it
Matthew Fernandez [Sat, 24 Apr 2021 18:24:11 +0000 (11:24 -0700)]
use CMake support to locate Python 3 before calling it

This change means (1) the CMake build system will fail less cryptically when
Python 3 is unavailable and (2) the CMake build system is now able to locate and
use Python 3 even when it is not called `python3`. Related to #2049.

3 years agoremove test suite assumption that Python can be run as `python3`
Matthew Fernandez [Sat, 24 Apr 2021 17:46:03 +0000 (10:46 -0700)]
remove test suite assumption that Python can be run as `python3`

On Windows, python3.exe does not typically exist. The python.exe binary is
Python 3 and is intended to be called as just this. The CI setup currently works
around this by copying python.exe to python3.exe. This change removes any
dependency on python3 existing, which should ease life for both CI and Windows
users wanting to run the test suite. Closes #2049.

3 years agoremove unused cmake-build_and_test.sh script
Matthew Fernandez [Sat, 24 Apr 2021 17:42:37 +0000 (10:42 -0700)]
remove unused cmake-build_and_test.sh script

The CMake builds are driven from build.sh, not from this script.

3 years agoMerge branch 'independence-inn' into 'main'
Matthew Fernandez [Sat, 1 May 2021 05:36:43 +0000 (05:36 +0000)]
Merge branch 'independence-inn' into 'main'

build: use CMake to drive the position independence

See merge request graphviz/graphviz!1923

3 years agobuild: use CMake to drive the position independence
Saleem Abdulrasool [Sun, 25 Apr 2021 00:50:08 +0000 (17:50 -0700)]
build: use CMake to drive the position independence

This replaces the use of `-fPIC` with `CMAKE_POSITION_INDEPENDENT_CODE`
which is used by CMake to initialise the `POSITION_INDEPENDENT_CODE`
property on targets, which allows the portable way to indicate the
compiler-independent spelling for `-fPIC`.  This was previously unset on
MSVC because MSVC does not support the `-fPIC` option and Windows by
default is PIC by means of the base relocation of the binary.

3 years agoMerge branch 'smattr/8AC007D7-AEDE-49D4-800C-266AB9198BDD' into 'main'
Matthew Fernandez [Sat, 1 May 2021 01:17:15 +0000 (01:17 +0000)]
Merge branch 'smattr/8AC007D7-AEDE-49D4-800C-266AB9198BDD' into 'main'

squash some Pylint warnings

See merge request graphviz/graphviz!1919

3 years agoremove an unused variable
Matthew Fernandez [Sat, 24 Apr 2021 17:30:08 +0000 (10:30 -0700)]
remove an unused variable

3 years agoremove unused parameter to judge()
Matthew Fernandez [Sat, 24 Apr 2021 17:27:59 +0000 (10:27 -0700)]
remove unused parameter to judge()

3 years agodisable Pylint too-few-public-methods
Matthew Fernandez [Sat, 24 Apr 2021 17:26:24 +0000 (10:26 -0700)]
disable Pylint too-few-public-methods

What kind of a warning is this? A class with even a single method isn’t a
mistake. It’s likely abstraction or indicating something semantic to the reader.

3 years agoremove an unnecessary Python class
Matthew Fernandez [Sat, 24 Apr 2021 17:25:18 +0000 (10:25 -0700)]
remove an unnecessary Python class

3 years agosuppress an import-position Pylint warning
Matthew Fernandez [Sat, 24 Apr 2021 17:24:31 +0000 (10:24 -0700)]
suppress an import-position Pylint warning

3 years agosquash multiple-imports Pyint warning
Matthew Fernandez [Sat, 24 Apr 2021 17:23:56 +0000 (10:23 -0700)]
squash multiple-imports Pyint warning

3 years agoremove an unnecessary class in a Python file
Matthew Fernandez [Sat, 24 Apr 2021 17:22:56 +0000 (10:22 -0700)]
remove an unnecessary class in a Python file

3 years agoreplace tabs in one Python file
Matthew Fernandez [Sat, 24 Apr 2021 17:21:51 +0000 (10:21 -0700)]
replace tabs in one Python file

3 years agosquash no-else-after-return Pylint warnings
Matthew Fernandez [Sat, 24 Apr 2021 17:21:07 +0000 (10:21 -0700)]
squash no-else-after-return Pylint warnings

3 years agodisable Pylint too-many-branches and too-many-statements
Matthew Fernandez [Sat, 24 Apr 2021 17:18:12 +0000 (10:18 -0700)]
disable Pylint too-many-branches and too-many-statements

Pylint’s definition of “too many” is quite low, especially for the kind of glue
code we use Python for.

3 years agosquash Pylint warnings for multiple statements on a line
Matthew Fernandez [Sat, 24 Apr 2021 17:17:31 +0000 (10:17 -0700)]
squash Pylint warnings for multiple statements on a line

3 years agodisable Pylint redefined-builtin warning
Matthew Fernandez [Sat, 24 Apr 2021 17:15:51 +0000 (10:15 -0700)]
disable Pylint redefined-builtin warning

We do not care about redefining things like `input`.

3 years agosquash wrong-import-order Pylint warnings for run_c
Matthew Fernandez [Sat, 24 Apr 2021 17:14:42 +0000 (10:14 -0700)]
squash wrong-import-order Pylint warnings for run_c

3 years agofix a numbe of Pylint import-order warnings
Matthew Fernandez [Sat, 24 Apr 2021 17:12:38 +0000 (10:12 -0700)]
fix a numbe of Pylint import-order warnings

3 years agoremove a Python == comparison against None
Matthew Fernandez [Sat, 24 Apr 2021 17:05:43 +0000 (10:05 -0700)]
remove a Python == comparison against None

3 years agoreplace exit() with sys.exit() in Python files
Matthew Fernandez [Sat, 24 Apr 2021 17:04:08 +0000 (10:04 -0700)]
replace exit() with sys.exit() in Python files

3 years agoremove unnecessary semi-colons in Python files
Matthew Fernandez [Sat, 24 Apr 2021 17:01:34 +0000 (10:01 -0700)]
remove unnecessary semi-colons in Python files

3 years agofix some Pylint lines-too-long warnings
Matthew Fernandez [Sat, 24 Apr 2021 16:59:02 +0000 (09:59 -0700)]
fix some Pylint lines-too-long warnings

3 years agoremove unused imports in Python files
Matthew Fernandez [Sat, 24 Apr 2021 16:52:56 +0000 (09:52 -0700)]
remove unused imports in Python files

3 years agoremove trailing newlines from Python files
Matthew Fernandez [Sat, 24 Apr 2021 16:49:41 +0000 (09:49 -0700)]
remove trailing newlines from Python files

3 years agoremove trailing whitespace in Python files
Matthew Fernandez [Sat, 24 Apr 2021 16:48:20 +0000 (09:48 -0700)]
remove trailing whitespace in Python files

3 years agoMerge branch 'smattr/AD0827FA-EDD0-4329-BA29-B4A977515179' into 'main'
Matthew Fernandez [Thu, 29 Apr 2021 15:45:06 +0000 (15:45 +0000)]
Merge branch 'smattr/AD0827FA-EDD0-4329-BA29-B4A977515179' into 'main'

add sprintf-like helper

See merge request graphviz/graphviz!1916

3 years agoreplace a use of snprintf pattern with gv_sprint
Matthew Fernandez [Fri, 23 Apr 2021 01:48:41 +0000 (18:48 -0700)]
replace a use of snprintf pattern with gv_sprint

This commit serves as an example of how to use the functionality added in the
previous commit. Related to #1950.

3 years agoadd sprintf-like helper
Matthew Fernandez [Fri, 23 Apr 2021 01:29:21 +0000 (18:29 -0700)]
add sprintf-like helper

The function sprintf is generally considered unsafe to use in modern C. In the
Graphviz code base, its uses are slowly being replaced with safer alternatives
(#1950). However, the alternative code is frequently overly verbose and
counter-intuitive. This commit adds (hopefully) convenient alternative functions
that can be used to replace sprintf uses. The gv_sprint function is similar to
the GNU asprintf function with a different calling convention.

The tests added alongside follow the same strategy as used for testing
lib/vmalloc.

3 years agoMerge branch 'smattr/E31C3F18-8D47-4280-873E-857FC13A19AB' into 'main'
Matthew Fernandez [Wed, 28 Apr 2021 15:51:38 +0000 (15:51 +0000)]
Merge branch 'smattr/E31C3F18-8D47-4280-873E-857FC13A19AB' into 'main'

clean up and warning squashing in tclpkg/

See merge request graphviz/graphviz!1915

3 years agoremove unnecessary bracketing and space in tclhandle.c
Matthew Fernandez [Thu, 22 Apr 2021 02:53:46 +0000 (19:53 -0700)]
remove unnecessary bracketing and space in tclhandle.c

3 years agoremove unused ISSPACE
Matthew Fernandez [Thu, 22 Apr 2021 02:50:36 +0000 (19:50 -0700)]
remove unused ISSPACE

3 years agocompute tclhandleEntryAlignment at compile time
Matthew Fernandez [Thu, 22 Apr 2021 02:48:13 +0000 (19:48 -0700)]
compute tclhandleEntryAlignment at compile time

There is no need to defer this to runtime. Making this a compile-time constant
allows the compiler to constant-fold computations involving it, producing more
efficient code.

Note, this is not really even the correct notion of platform alignment. The
alignment of a type is not guaranteed to be the same as its size. Nevertheless,
we leave this alone for now.

3 years agoremove useless cast
Matthew Fernandez [Thu, 22 Apr 2021 02:10:31 +0000 (19:10 -0700)]
remove useless cast

3 years agofix: consistently treat entry indices as uint64_t in tclhandle
Matthew Fernandez [Thu, 22 Apr 2021 02:10:19 +0000 (19:10 -0700)]
fix: consistently treat entry indices as uint64_t in tclhandle

This code intermingled uint64_t and int values for representing indices into an
array. Making this consistent removes a huge number of -Wsign-conversion and
-Wsign-compare compiler warnings, as well as more serious problem where printing
code assumed "%lu" was the format code to print an index. This is not true when
uint64_t is not the same type as unsigned long and would have most probably
resulted in stack corruption.

3 years agoMerge branch 'smattr/b3c0b645-f677-4b03-b68f-18e05373d6ef' into 'main'
Matthew Fernandez [Wed, 28 Apr 2021 04:46:50 +0000 (04:46 +0000)]
Merge branch 'smattr/b3c0b645-f677-4b03-b68f-18e05373d6ef' into 'main'

more clean up and warning squashing in plugin/core

See merge request graphviz/graphviz!1914

3 years agosquash -Wunused-parameter warning in pic_polygon
Matthew Fernandez [Wed, 21 Apr 2021 01:54:30 +0000 (18:54 -0700)]
squash -Wunused-parameter warning in pic_polygon

3 years agosquash -Wunused-parameter warnings in pic_bezier
Matthew Fernandez [Wed, 21 Apr 2021 01:53:32 +0000 (18:53 -0700)]
squash -Wunused-parameter warnings in pic_bezier

3 years agosquash two -Wsign-compare warnings in pic_string
Matthew Fernandez [Wed, 21 Apr 2021 01:48:06 +0000 (18:48 -0700)]
squash two -Wsign-compare warnings in pic_string

This is the equivalent of 4b33b8c3ad41e03f441959a58dc3e5d65ffc12bd and
337190b7b9b35c114f13043fa4541a210e61925a which we need to apply for a third time
because this function has been copied and pasted. Related to #2051.

3 years agosquash -Wsign-conversion warnings in pic_string
Matthew Fernandez [Wed, 21 Apr 2021 01:38:10 +0000 (18:38 -0700)]
squash -Wsign-conversion warnings in pic_string

This is the equivalent of 5a5aa9c606db77f444d744a11de61eb75de2b6ea and
be2de1fec0e5279a54a16e66cd96cdb620029a30 which we need to apply for a third time
because this function has been copied and pasted. Related to #2051.

3 years agoremove an open coded fmax
Matthew Fernandez [Wed, 21 Apr 2021 01:42:59 +0000 (18:42 -0700)]
remove an open coded fmax

3 years agofold printing of some constants into the format string itself
Matthew Fernandez [Wed, 21 Apr 2021 01:30:48 +0000 (18:30 -0700)]
fold printing of some constants into the format string itself

There's no need to suffer the overhead of dynamically serializing these values
whose representation we know at compile time.

3 years agodo pov_begin_graph computation entirely on doubles
Matthew Fernandez [Wed, 21 Apr 2021 01:26:01 +0000 (18:26 -0700)]
do pov_begin_graph computation entirely on doubles

This code was triggering a number of -Wfloat-conversion compiler warnings, and
there is really no need to truncate values during computation. We can do the
entire thing on doubles with better accuracy, though the final result is
truncated to three decimal places.

3 years agoremove unnecessary calls to fabsf
Matthew Fernandez [Wed, 21 Apr 2021 01:22:57 +0000 (18:22 -0700)]
remove unnecessary calls to fabsf

3 years agofix some casts to incorrect target type
Matthew Fernandez [Wed, 21 Apr 2021 01:16:05 +0000 (18:16 -0700)]
fix some casts to incorrect target type

Removes two -Wsign-conversion warnings.

3 years agoremove use of %d to emit unsigneds in VML plugin
Matthew Fernandez [Wed, 21 Apr 2021 01:14:37 +0000 (18:14 -0700)]
remove use of %d to emit unsigneds in VML plugin

3 years agosquash -Wunused-parameter in tkgen_begin_edge
Matthew Fernandez [Wed, 21 Apr 2021 01:11:33 +0000 (18:11 -0700)]
squash -Wunused-parameter in tkgen_begin_edge

3 years agosquash -Wunused-parameter warning in tkgen_begin_node
Matthew Fernandez [Wed, 21 Apr 2021 01:11:09 +0000 (18:11 -0700)]
squash -Wunused-parameter warning in tkgen_begin_node

3 years agosquash 8 -Wconversion warnings
Matthew Fernandez [Wed, 21 Apr 2021 01:10:20 +0000 (18:10 -0700)]
squash 8 -Wconversion warnings

3 years agoremove unused parameters to svg_rgradstyle
Matthew Fernandez [Wed, 21 Apr 2021 00:57:19 +0000 (17:57 -0700)]
remove unused parameters to svg_rgradstyle

3 years agoremove commented out code
Matthew Fernandez [Wed, 21 Apr 2021 00:56:10 +0000 (17:56 -0700)]
remove commented out code

3 years agoMerge branch 'smattr/b06d6e22-33f7-4371-ba03-b58b72af0dce' into 'main'
Matthew Fernandez [Mon, 26 Apr 2021 15:30:06 +0000 (15:30 +0000)]
Merge branch 'smattr/b06d6e22-33f7-4371-ba03-b58b72af0dce' into 'main'

more modernization and removal of manual memory management in plugin/visio

See merge request graphviz/graphviz!1913

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