diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-04-07 11:22:27 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-04-07 11:22:27 +0200 |
commit | 41acaadb7a56c29cf8d624b461f87674047f20a9 (patch) | |
tree | 6c4b90e2816a2332d296bc2732780c442fb7c9de /x11-misc/xnots/files | |
parent | app-text/docbook-xsl-stylesheets: Stable for HPPA (bug #608490). (diff) | |
download | gentoo-41acaadb7a56c29cf8d624b461f87674047f20a9.tar.gz gentoo-41acaadb7a56c29cf8d624b461f87674047f20a9.tar.bz2 gentoo-41acaadb7a56c29cf8d624b461f87674047f20a9.zip |
x11-misc/xnots: Add GCC 6 patch.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'x11-misc/xnots/files')
-rw-r--r-- | x11-misc/xnots/files/xnots-0.2.1-gcc6.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/x11-misc/xnots/files/xnots-0.2.1-gcc6.patch b/x11-misc/xnots/files/xnots-0.2.1-gcc6.patch new file mode 100644 index 000000000000..df65f009cdb7 --- /dev/null +++ b/x11-misc/xnots/files/xnots-0.2.1-gcc6.patch @@ -0,0 +1,46 @@ +diff --git a/src/Makefile b/src/Makefile +index 4f8aaf1..7b527a6 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -28,7 +28,7 @@ else + CFLAGS += -DDEBUG_LEVEL=1 -g + endif + +-CFLAGS += -fno-strict-aliasing ++CFLAGS += -fno-strict-aliasing -fgnu89-inline + CFLAGS += -DVERSION=\"$(VERSION)\" -Wall + CFLAGS += $(shell pkg-config $(PKGS) --cflags) + LDLIBS += $(shell pkg-config $(PKGS) --libs) +diff --git a/src/main.c b/src/main.c +index aef54d6..f1571f3 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -228,7 +228,6 @@ processOptions( int argc, char **argv ) + char text[1024]; + unsigned long flags, flagsMask; + char *options[NOPTIONS]; +- int nbytes; + + int i; + +@@ -295,7 +294,7 @@ OPTIONS\n\ + for( i=0; i < NOPTIONS; i++) + options[i] = NULL; + +- nbytes = readOptionsFromFile( options, &flags, &flagsMask, text, 1024, ++ readOptionsFromFile( options, &flags, &flagsMask, text, 1024, + config_file); + + /* Initialize the global xnots_t structure. */ +diff --git a/src/xnots.h b/src/xnots.h +index 52316fe..6b9f577 100644 +--- a/src/xnots.h ++++ b/src/xnots.h +@@ -330,6 +330,7 @@ void correctNoteGeometry ( Note *note, + unsigned height + ); + void correctNoteHeight ( Note *note ); ++extern + inline void resetNoteWidth ( Note *note ); + void freeNote ( Note *note ); + void showNotes (); |