/ Check-in [b522c95d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Attempt to fix harmless warnings generated by GCC and Clang runtime analyzers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b522c95ddcd7046dca756f4d1a1e90c34dbcab64
User & Date: drh 2015-07-15 18:04:48
Context
2015-07-15
18:35
Fix some harmless compiler warnings. check-in: 110cd84f user: drh tags: trunk
18:04
Attempt to fix harmless warnings generated by GCC and Clang runtime analyzers. check-in: b522c95d user: drh tags: trunk
13:56
Fix the fuzz3.test script so that it works with the new bulk pagecache allocation feature. check-in: 829a2dba user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/date.c.

   351    351       p->D = 1;
   352    352     }else{
   353    353       Z = (int)((p->iJD + 43200000)/86400000);
   354    354       A = (int)((Z - 1867216.25)/36524.25);
   355    355       A = Z + 1 + A - (A/4);
   356    356       B = A + 1524;
   357    357       C = (int)((B - 122.1)/365.25);
   358         -    D = (36525*C)/100;
          358  +    D = (36525*(C&32767))/100;
   359    359       E = (int)((B-D)/30.6001);
   360    360       X1 = (int)(30.6001*E);
   361    361       p->D = B - D - X1;
   362    362       p->M = E<14 ? E-1 : E-13;
   363    363       p->Y = p->M>2 ? C - 4716 : C - 4715;
   364    364     }
   365    365     p->validYMD = 1;

Changes to src/test1.c.

   269    269     char **argv            /* Text of each argument */
   270    270   ){
   271    271     int res = 0;
   272    272   #if defined(__has_feature)
   273    273   # if __has_feature(address_sanitizer)
   274    274     res = 1;
   275    275   # endif
          276  +#endif
          277  +#ifdef __SANITIZE_ADDRESS__
          278  +  res = 1;
   276    279   #endif
   277    280     if( res==0 && getenv("OMIT_MISUSE")!=0 ) res = 1;
   278    281     Tcl_SetObjResult(interp, Tcl_NewIntObj(res));
   279    282     return TCL_OK;
   280    283   }
   281    284     
   282    285   /*