aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-11-05 21:50:05 +0800
committerlioux <lioux@FreeBSD.org>2002-11-05 21:50:05 +0800
commit99c180975bf783f021eeb0bba797fa38b174d01f (patch)
tree99107b06641d55d11b1d5c31f795e82dc98c0cf8
parent99cf5de0d0300301b995b12d0fe084d6499e22fe (diff)
downloadfreebsd-ports-gnome-99c180975bf783f021eeb0bba797fa38b174d01f.tar.gz
freebsd-ports-gnome-99c180975bf783f021eeb0bba797fa38b174d01f.tar.zst
freebsd-ports-gnome-99c180975bf783f021eeb0bba797fa38b174d01f.zip
Support NDEBUG define which both turns off assertions and makes
some variables unused Submitted by: mi
-rw-r--r--graphics/libdvdread/files/patch-ndebug35
-rw-r--r--multimedia/libdvdread/files/patch-ndebug35
2 files changed, 70 insertions, 0 deletions
diff --git a/graphics/libdvdread/files/patch-ndebug b/graphics/libdvdread/files/patch-ndebug
new file mode 100644
index 000000000000..2383f9ccb31b
--- /dev/null
+++ b/graphics/libdvdread/files/patch-ndebug
@@ -0,0 +1,35 @@
+--- dvdread/nav_read.c.orig Sun Apr 7 14:51:39 2002
++++ dvdread/nav_read.c Tue Nov 5 11:47:57 2002
+@@ -27,7 +27,7 @@
+ #include "nav_read.h"
+
+ void navRead_PCI(pci_t *pci, unsigned char *buffer) {
+- int i, j, k;
++ int i, j;
+
+ assert(sizeof(pci_t) == PCI_BYTES - 1); // -1 for substream id
+
+@@ -71,6 +71,7 @@
+ #endif
+
+
++#ifndef NDEBUG /* { */
+ /* Asserts */
+
+ /* pci pci gi */
+@@ -112,6 +113,7 @@
+ assert(pci->hli.btnit[n].right <= pci->hli.hl_gi.btn_ns);
+ //vmcmd_verify(pci->hli.btnit[n].cmd);
+ } else {
++ int k;
+ assert(pci->hli.btnit[n].btn_coln == 0);
+ assert(pci->hli.btnit[n].auto_action_mode == 0);
+ assert(pci->hli.btnit[n].x_start == 0);
+@@ -127,6 +129,7 @@
+ }
+ }
+ }
++#endif /* !NDEBUG } */
+ }
+
+ void navRead_DSI(dsi_t *dsi, unsigned char *buffer) {
diff --git a/multimedia/libdvdread/files/patch-ndebug b/multimedia/libdvdread/files/patch-ndebug
new file mode 100644
index 000000000000..2383f9ccb31b
--- /dev/null
+++ b/multimedia/libdvdread/files/patch-ndebug
@@ -0,0 +1,35 @@
+--- dvdread/nav_read.c.orig Sun Apr 7 14:51:39 2002
++++ dvdread/nav_read.c Tue Nov 5 11:47:57 2002
+@@ -27,7 +27,7 @@
+ #include "nav_read.h"
+
+ void navRead_PCI(pci_t *pci, unsigned char *buffer) {
+- int i, j, k;
++ int i, j;
+
+ assert(sizeof(pci_t) == PCI_BYTES - 1); // -1 for substream id
+
+@@ -71,6 +71,7 @@
+ #endif
+
+
++#ifndef NDEBUG /* { */
+ /* Asserts */
+
+ /* pci pci gi */
+@@ -112,6 +113,7 @@
+ assert(pci->hli.btnit[n].right <= pci->hli.hl_gi.btn_ns);
+ //vmcmd_verify(pci->hli.btnit[n].cmd);
+ } else {
++ int k;
+ assert(pci->hli.btnit[n].btn_coln == 0);
+ assert(pci->hli.btnit[n].auto_action_mode == 0);
+ assert(pci->hli.btnit[n].x_start == 0);
+@@ -127,6 +129,7 @@
+ }
+ }
+ }
++#endif /* !NDEBUG } */
+ }
+
+ void navRead_DSI(dsi_t *dsi, unsigned char *buffer) {