summaryrefslogtreecommitdiffstats
path: root/compat/zlib/test/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/zlib/test/example.c')
-rw-r--r--compat/zlib/test/example.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/compat/zlib/test/example.c b/compat/zlib/test/example.c
index 138a699..eee17ce 100644
--- a/compat/zlib/test/example.c
+++ b/compat/zlib/test/example.c
@@ -1,5 +1,5 @@
/* example.c -- usage example of the zlib compression library
- * Copyright (C) 1995-2006, 2011 Jean-loup Gailly.
+ * Copyright (C) 1995-2006, 2011, 2016 Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -26,13 +26,13 @@
} \
}
-z_const char hello[] = "hello, hello!";
+static z_const char hello[] = "hello, hello!";
/* "hello world" would be more standard, but the repeated "hello"
* stresses the compression code better, sorry...
*/
-const char dictionary[] = "hello";
-uLong dictId; /* Adler32 value of the dictionary */
+static const char dictionary[] = "hello";
+static uLong dictId; /* Adler32 value of the dictionary */
void test_deflate OF((Byte *compr, uLong comprLen));
void test_inflate OF((Byte *compr, uLong comprLen,
@@ -59,13 +59,13 @@ void *myalloc(q, n, m)
void *q;
unsigned n, m;
{
- q = Z_NULL;
+ (void)q;
return calloc(n, m);
}
void myfree(void *q, void *p)
{
- q = Z_NULL;
+ (void)q;
free(p);
}
@@ -432,7 +432,7 @@ void test_sync(compr, comprLen, uncompr, uncomprLen)
d_stream.next_out = uncompr;
d_stream.avail_out = (uInt)uncomprLen;
- inflate(&d_stream, Z_NO_FLUSH);
+ err = inflate(&d_stream, Z_NO_FLUSH);
CHECK_ERR(err, "inflate");
d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
@@ -573,7 +573,8 @@ int main(argc, argv)
}
#ifdef Z_SOLO
- argc = strlen(argv[0]);
+ (void)argc;
+ (void)argv;
#else
test_compress(compr, comprLen, uncompr, uncomprLen);
9e278e1058a9cee68770e87c981500144b'>plain -rw-r--r--Dtypes_fig13d.gif2769logstatsplain -rw-r--r--Dtypes_fig14.gif50174logstatsplain -rw-r--r--Dtypes_fig15.gif30871logstatsplain -rw-r--r--Dtypes_fig16a.gif10896logstatsplain -rw-r--r--Dtypes_fig16b.gif6908logstatsplain -rw-r--r--Dtypes_fig16c.gif6847logstatsplain -rw-r--r--Dtypes_fig16d.gif9850logstatsplain -rw-r--r--Dtypes_fig17a.gif13623logstatsplain -rw-r--r--Dtypes_fig17b.gif30154logstatsplain -rw-r--r--Dtypes_fig18.gif9037logstatsplain -rw-r--r--Dtypes_fig19.gif12014logstatsplain -rw-r--r--Dtypes_fig2.gif6099logstatsplain -rw-r--r--Dtypes_fig20a.gif31836logstatsplain -rw-r--r--Dtypes_fig20b.gif17044logstatsplain -rw-r--r--Dtypes_fig20c.gif24983logstatsplain -rw-r--r--Dtypes_fig20d.gif14435logstatsplain -rw-r--r--Dtypes_fig21.gif56286logstatsplain -rw-r--r--Dtypes_fig22.gif40000logstatsplain -rw-r--r--Dtypes_fig23.gif61311logstatsplain -rw-r--r--Dtypes_fig24.gif30529logstatsplain -rw-r--r--Dtypes_fig25a.gif17268logstatsplain -rw-r--r--Dtypes_fig25b.gif6634logstatsplain -rw-r--r--Dtypes_fig25c.gif17238logstatsplain -rw-r--r--Dtypes_fig26.gif14866logstatsplain -rw-r--r--Dtypes_fig27.gif57099logstatsplain -rw-r--r--Dtypes_fig28.gif49961logstatsplain -rw-r--r--Dtypes_fig3.gif5654logstatsplain -rw-r--r--Dtypes_fig4.gif14387logstatsplain -rw-r--r--Dtypes_fig5.gif16959logstatsplain -rw-r--r--Dtypes_fig6.gif52742logstatsplain -rw-r--r--Dtypes_fig7.gif55938logstatsplain -rw-r--r--Dtypes_fig8.gif20671logstatsplain -rw-r--r--Dtypes_fig9.gif22036logstatsplain -rw-r--r--Files_fig3.gif44382logstatsplain -rw-r--r--Files_fig4.gif38862logstatsplain -rw-r--r--Groups_fig1.gif5404logstatsplain -rw-r--r--Groups_fig10_a.gif7745logstatsplain -rw-r--r--Groups_fig10_b.gif6372logstatsplain -rw-r--r--Groups_fig10_c.gif8308logstatsplain -rw-r--r--Groups_fig10_d.gif12963logstatsplain -rw-r--r--Groups_fig11_a.gif7349logstatsplain -rw-r--r--Groups_fig11_b.gif7912logstatsplain -rw-r--r--Groups_fig11_c.gif8589logstatsplain -rw-r--r--Groups_fig11_d.gif9552logstatsplain -rw-r--r--Groups_fig2.gif6187logstatsplain -rw-r--r--Groups_fig3.gif5045logstatsplain -rw-r--r--Groups_fig4.gif12187logstatsplain -rw-r--r--Groups_fig5.gif10459logstatsplain -rw-r--r--Groups_fig6.gif13979logstatsplain -rw-r--r--Groups_fig9_a.gif6313logstatsplain -rw-r--r--Groups_fig9_aa.gif7923logstatsplain -rw-r--r--Groups_fig9_b.gif7352logstatsplain -rw-r--r--Groups_fig9_bb.gif7336logstatsplain -rw-r--r--HDFG-logo.png1689logstatsplain -rw-r--r--LBDsetSubRWProg.png18297logstatsplain -rw-r--r--Pmodel_fig2.gif4411logstatsplain -rw-r--r--Pmodel_fig3.gif39263logstatsplain -rw-r--r--Pmodel_fig5_a.gif17234logstatsplain -rw-r--r--Pmodel_fig5_b.gif20671logstatsplain -rw-r--r--Pmodel_fig5_c.gif23897logstatsplain -rw-r--r--Pmodel_fig5_d.gif23575logstatsplain -rw-r--r--Pmodel_fig5_e.gif4304logstatsplain -rw-r--r--Pmodel_fig6.gif11996logstatsplain -rw-r--r--PropListClassInheritance.gif17349logstatsplain -rw-r--r--PropListEcosystem.gif3720logstatsplain -rw-r--r--Shared_Attribute.jpg37209logstatsplain -rw-r--r--StormDataset.png21441logstatsplain -rw-r--r--UML_Attribute.jpg36134logstatsplain -rw-r--r--UML_FileAndProps.gif6161logstatsplain -rw-r--r--VFL_Drivers.gif17638logstatsplain -rw-r--r--_a_p_i_versions_8dox.html5147logstatsplain -rw-r--r--_a_p_p_d_b_g.html18484logstatsplain -rw-r--r--_a_r__u_g.html17652logstatsplain -rw-r--r--_about.html18000logstatsplain -rw-r--r--_about_8dox.html5111logstatsplain -rw-r--r--_accessibility.html15981logstatsplain -rw-r--r--_accessibility_8dox.html5169logstatsplain -rw-r--r--_attributes.html19231logstatsplain -rw-r--r--_attributes_8dox.html5154logstatsplain -rw-r--r--_cookbook.html6023logstatsplain -rw-r--r--_cookbook_8dox.html5126logstatsplain -rw-r--r--_d_d_l_b_n_f110.html42086logstatsplain -rw-r--r--_d_d_l_b_n_f110_8dox.html5141logstatsplain -rw-r--r--_d_d_l_b_n_f112.html42317logstatsplain -rw-r--r--_d_d_l_b_n_f112_8dox.html5141logstatsplain -rw-r--r--_e_r_r_o_r_s.html6021logstatsplain -rw-r--r--_e_r_r_o_r_s_j_a_v_a.html5394logstatsplain -rw-r--r--_e_r_r_o_r_s_l_i_b.html5667logstatsplain -rw-r--r--_ex_a_p_i.html60286logstatsplain -rw-r--r--_examples_a_p_i_8dox.html5147logstatsplain -rw-r--r--_f_i_l_t_e_r.html24301logstatsplain -rw-r--r--_f_m_t1.html128936logstatsplain -rw-r--r--_f_m_t11.html190016logstatsplain -rw-r--r--_f_m_t2.html504010logstatsplain -rw-r--r--_f_m_t3.html619003logstatsplain -rw-r--r--_f_m_t_d_i_s_c.html44548logstatsplain -rw-r--r--_f_t_s.html5183logstatsplain