From 32cc86aac71474b3c7700548371c5af1c0fe9783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Sun, 1 Sep 2013 00:54:00 +0200 Subject: [PATCH] Fixed warnings. --- .mandel_classic.c.swp | Bin 16384 -> 0 bytes mandel_classic.c | 4 +--- test.c | 6 +----- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 .mandel_classic.c.swp diff --git a/.mandel_classic.c.swp b/.mandel_classic.c.swp deleted file mode 100644 index 4e914e81974d6e773b0c3fb928c08ab6cc8dddc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI3ZEPGz8OOJ6`c6U!ACQ1ZLrkqZ+p*7=nxst}6jGBo*fbWiB2t_nn@A}D-lKOxi)4Hcq*giuAro1jRbA|yT_1mQP3vwL@b zB|(uunU#Lo-DjSidFDT}GdpumG55jgS+RF?kHfLuao+NhIPv#wr?1Lq9Vd`287liG zN6T-A)iYkByouk(;ta=*2mVK8DQu0^-9}l~ih&=R%R;H zwmN(A<2m)*z^-?QH}9Cc_$=%bRspMkRlq7>6|f3e1*`&A0jt3OtpZ_li}L`{Uu|k| z)|{_ealT-VB>miq^naQ3z}Rmy86^2!W9-A`{LK~V#%xbk0jq#jz$#!BunJfOtO8a6 ztAJI&Dqt0`3S0&STz<6QO1@914FG=sPuBN;exu|30$zY`!582hd=@?fRhWkgd>HP4 zTj8Cs6W$Kj!WMXSo8!C$=izyH8lHrQ;XWwA3{1mO*ah2R8(bi`zre5HMff&636H~L z@F>(_0gk~@I08H2ZSdDO@I1T@FTfAryD$$f?0}o$Mz{ffd9&lZ0-uIY!6zYtX*dD{ zaN#D$`7wMMz61}zy>JS4!!QiNKW}uLf56Y-JMa+9!CkNicEFq9_cu7s@8GxaJ$M#A z2Q`?4ZLk&obiL#J5YEFF;T)WW88`-ma5en&I>-4Md=(x97f!=4Tm!FMOWVRv;AN=8 z0=yfx!>_kE&X3@EcnThYk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)mn<^|WhzyMjTjtFGze;A;tQ(2xWEWH{xwW>u zUEET>r?G2h*^y;>xd=X+~jGt(*sQZ^C?B}c!0{daM?h@(`O7kT6-Cd~HoMLww9 zb0f|rJat)~jMuk!t6zWAzIos_7St~RO43=kdE&@>4jENtotal_threads > 2) { @@ -359,7 +359,6 @@ int main(int argn, char **argv) fprintf(stderr,"Could not set video mode: %s\n",SDL_GetError()); // Prepare the resolution and sizes and colors, threads... - int i; iteration_pixels = malloc(res_x * res_y * sizeof(int)); pthread_t threads[number_threads]; piece_args arguments[number_threads]; @@ -374,7 +373,6 @@ int main(int argn, char **argv) for (zoom = 1.0; zoom > -2.5 ; zoom -= 0.01) #endif { - i = 0; int iteration, max_iteration, x, y, res; if((zoom < -0.02) && (zoom > -1.0)) { diff --git a/test.c b/test.c index d4669b0..60ec2a2 100644 --- a/test.c +++ b/test.c @@ -105,7 +105,6 @@ int julia_point(int res_x, int res_y, int image_x, int image_y, double zoom, int double pos_y = map_y(image_y, res_y, 1.0); double x = pos_x; double y = pos_y; - double q, x_term; double xtemp, xx, yy; #ifdef CACHE int storeable = 1; @@ -165,7 +164,6 @@ int main(int argn, char **argv) { SDL_Surface *screen; int res_x = 800; int res_y = 600; - int total_res = res_x * res_y; #ifdef CACHE // Init our cached points @@ -205,8 +203,6 @@ int main(int argn, char **argv) { // Prepare the resolution and sizes and colors... int i; - int temp; - const int ITERATIONS = 256; printf("Rendering...\n"); @@ -228,7 +224,7 @@ int main(int argn, char **argv) { { max_iteration = 255; } - int col_value; + Uint32 *pixel; int rank; // Lock surface