<pre style='margin:0'>
Ryan Carsten Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/22824f11cce6ee398159f175aa89fba0306cb6cc">https://github.com/macports/macports-ports/commit/22824f11cce6ee398159f175aa89fba0306cb6cc</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 22824f11cce aewan: Fix compiler errors and warnings
</span>22824f11cce is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 22824f11cce6ee398159f175aa89fba0306cb6cc
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Tue Jul 23 05:42:08 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> aewan: Fix compiler errors and warnings
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/68443
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also modernize checksums and remove platforms darwin line.
</span>---
editors/aewan/Portfile | 16 +++++++++----
editors/aewan/files/format-security.patch | 16 +++++++++++++
editors/aewan/files/header-guard.patch | 16 +++++++++++++
.../files/implicit-function-declaration.patch | 26 ++++++++++++++++++++++
.../aewan/files/incompatible-pointer-types.patch | 25 +++++++++++++++++++++
editors/aewan/files/uninitialized.patch | 16 +++++++++++++
editors/aewan/files/unused-but-set-variable.patch | 25 +++++++++++++++++++++
7 files changed, 136 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/Portfile b/editors/aewan/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 24611a4d07d..2c45ffdc84e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/editors/aewan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,10 +2,13 @@ PortSystem 1.0
</span>
name aewan
version 1.0.01
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 13c566518d9b8680e0835a00ee66f3eb230693e7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5266dec5e185e530b792522821c97dfa5f9e3892d0dca5e881d0c30ceac21817 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 122880
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories editors
license GPL-2+
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
description Curses-based program for the creation and editing of ascii art
long_description ${description}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,10 +16,15 @@ long_description ${description}
</span> homepage http://aewan.sourceforge.net/
master_sites sourceforge:project/aewan/aewan/aewan-${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums md5 89545338d1eba311297b520f9dc1b976
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_lib port:ncurses port:zlib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles format-security.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ header-guard.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit-function-declaration.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ incompatible-pointer-types.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uninitialized.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unused-but-set-variable.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args --mandir=${prefix}/share/man
livecheck.type regex
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/files/format-security.patch b/editors/aewan/files/format-security.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..42550e1d683
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/files/format-security.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: format not a string literal and no format arguments [-Werror=format-security]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/aewan/bugs/13/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- aewan.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ aewan.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -139,7 +139,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static char *msg = "[Document contains no layers; press F1 for menu]";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ kurses_move((scr_width - strlen(msg)) / 2, scr_height / 2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ kurses_color(7, 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- printw(msg);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ printw("%s", msg);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ refresh();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/files/header-guard.patch b/editors/aewan/files/header-guard.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..40bc409f14e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/files/header-guard.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+warning: '_btco_aewan_helpdlg_h' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/aewan/bugs/14/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- helpdlg.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ helpdlg.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -33,7 +33,7 @@ programa, armazenada no arquivo COPYING).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef _btco_aewan_helpdlg_h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define _btco_aewan_helprdlg_h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define _btco_aewan_helpdlg_h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* invokes the "help" dialog */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void show_help_dlg(void);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/files/implicit-function-declaration.patch b/editors/aewan/files/implicit-function-declaration.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b96f070318d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/files/implicit-function-declaration.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: call to undeclared function 'filedlg_show'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/aewan/bugs/16/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2581,6 +2581,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat >>conftest.$ac_ext <<_ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if ((' ' & 0x0FF) == 0x020)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- debug_aewl.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ debug_aewl.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,6 +7,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "aewl/field.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "aewl/label.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "filedlg.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "keys.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ncurses.h>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/files/incompatible-pointer-types.patch b/editors/aewan/files/incompatible-pointer-types.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b2735a0f8bb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/files/incompatible-pointer-types.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: incompatible function pointer types passing 'int (gzFile)' (aka 'int (struct gzFile_s *)') to parameter of type 'int (*)(void *)' [-Wincompatible-function-pointer-types]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/aewan/bugs/14/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- aeff.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ aeff.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -88,7 +88,7 @@ static bool read_parse_data_line(gzFile f, char **label, char **type,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ autod_begin;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ autod_register(line, free);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- autod_assign( line, freadline_ex(f, gzgetc) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ autod_assign( line, freadline_ex(f, (void*)gzgetc) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* look for ':' field separators and note their locations */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ field_start[0] = line;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -192,7 +192,7 @@ static bool aeff_read_mark(AeFile *f, const char *mark_name, char pref) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ autod_begin;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ autod_register(line, free);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- autod_assign(line, freadline_ex(f->f, gzgetc));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ autod_assign(line, freadline_ex(f->f, (void*)gzgetc));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* if EOF was reached before anything could be read, something is wrong */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!line) {
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/files/uninitialized.patch b/editors/aewan/files/uninitialized.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f8d34dd34a6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/files/uninitialized.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+warning: variable 'doc' is uninitialized when used within its own initialization [-Wuninitialized]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/aewan/bugs/14/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- vlayer.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ vlayer.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -9,7 +9,7 @@ static void _get_cell_LYR(Cell *r_cell, int x, int y, void *ud) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* callback that returns a cell from a document composite */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void _get_cell_COMPOSITE(Cell *r_cell, int x, int y, void *ud) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- Document *doc = (Document*) doc;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ Document *doc = (Document*) NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *r_cell = document_calc_effective_cell(doc, x, y);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/aewan/files/unused-but-set-variable.patch b/editors/aewan/files/unused-but-set-variable.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c19458199e3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/aewan/files/unused-but-set-variable.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+warning: variable 'maxy' set but not used [-Wunused-but-set-variable]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/aewan/bugs/14/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bores/kurses.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bores/kurses.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -139,15 +139,11 @@ void kurses_color_at(int attr) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int kurses_width() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- int maxy, maxx;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- getmaxyx(stdscr, maxy, maxx);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return maxx;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return getmaxx(stdscr);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int kurses_height() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- int maxy, maxx;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- getmaxyx(stdscr, maxy, maxx);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return maxy;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return getmaxy(stdscr);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int kurses_pos_valid(int x, int y) {
</span></pre><pre style='margin:0'>
</pre>