/ Check-in [2aa7a03b]
Login

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

Overview
Comment:Fix harmless uninitialized variable warnings in speedtest1.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2aa7a03b8632dbfd9741018b5b19c372dcfd3647
User & Date: drh 2016-10-18 15:29:57
Context
2016-10-18
16:36
Minor simplification of the comparison opcodes. check-in: 56474ebc user: drh tags: trunk
15:29
Fix harmless uninitialized variable warnings in speedtest1.c. check-in: 2aa7a03b user: drh tags: trunk
14:35
Add the --repeat option to speedtest1.c and speed-check.sh. check-in: 6ca0e06b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/speedtest1.c.

   459    459   ** The main and default testset
   460    460   */
   461    461   void testset_main(void){
   462    462     int i;                        /* Loop counter */
   463    463     int n;                        /* iteration count */
   464    464     int sz;                       /* Size of the tables */
   465    465     int maxb;                     /* Maximum swizzled value */
   466         -  unsigned x1, x2;              /* Parameters */
   467         -  int len;                      /* Length of the zNum[] string */
          466  +  unsigned x1 = 0, x2 = 0;      /* Parameters */
          467  +  int len = 0;                  /* Length of the zNum[] string */
   468    468     char zNum[2000];              /* A number name */
   469    469   
   470    470     sz = n = g.szTest*500;
          471  +  zNum[0] = 0;
   471    472     maxb = roundup_allones(sz);
   472    473     speedtest1_begin_test(100, "%d INSERTs into table with no index", n);
   473    474     speedtest1_exec("BEGIN");
   474    475     speedtest1_exec("CREATE%s TABLE t1(a INTEGER %s, b INTEGER %s, c TEXT %s);",
   475    476                     isTemp(9), g.zNN, g.zNN, g.zNN);
   476    477     speedtest1_prepare("INSERT INTO t1 VALUES(?1,?2,?3); --  %d times", n);
   477    478     for(i=1; i<=n; i++){