zstd: fix compilation with Solaris Studio
authorDanek Duvall <danek.duvall@oracle.com>
Tue, 22 Nov 2016 13:32:05 -0800
changeset 30498 d7a05d8351d0
parent 30497 002fa4d79466
child 30499 22d05b53b0e8
zstd: fix compilation with Solaris Studio Without these changes, Solaris Studio (12.4) gives us "syntax error: empty declaration" on these two lines.
contrib/python-zstandard/c-ext/compressionparams.c
contrib/python-zstandard/c-ext/dictparams.c
--- a/contrib/python-zstandard/c-ext/compressionparams.c	Mon Nov 21 21:36:46 2016 -0500
+++ b/contrib/python-zstandard/c-ext/compressionparams.c	Tue Nov 22 13:32:05 2016 -0800
@@ -136,7 +136,7 @@
 
 static Py_ssize_t CompressionParameters_length(PyObject* self) {
 	return 7;
-};
+}
 
 static PyObject* CompressionParameters_item(PyObject* o, Py_ssize_t i) {
 	CompressionParametersObject* self = (CompressionParametersObject*)o;
--- a/contrib/python-zstandard/c-ext/dictparams.c	Mon Nov 21 21:36:46 2016 -0500
+++ b/contrib/python-zstandard/c-ext/dictparams.c	Tue Nov 22 13:32:05 2016 -0800
@@ -42,7 +42,7 @@
 
 static Py_ssize_t DictParameters_length(PyObject* self) {
 	return 4;
-};
+}
 
 static PyObject* DictParameters_item(PyObject* o, Py_ssize_t i) {
 	DictParametersObject* self = (DictParametersObject*)o;