Fossil

Check-in [5419e7fc]
Login

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

Overview
Comment:Remove pointless code that initializes a BSS data structure to zeros, even though it is already all-zero. This avoids a compiler warning in GCC7.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:5419e7fcecdbcc099738a2a6d194beca54fe7503d5b5d108b343b83eae4fd999
User & Date: drh 2017-12-15 18:27:08
Context
2017-12-18
02:06
Fix the default background color for Modern View timeline in the Xekri skin. check-in: a6c5a462 user: drh tags: trunk
2017-12-15
18:27
Remove pointless code that initializes a BSS data structure to zeros, even though it is already all-zero. This avoids a compiler warning in GCC7. check-in: 5419e7fc user: drh tags: trunk
01:54
Fixes to the "eagle" built-in CSS so that trunk backgrounds look right in the Modern View. check-in: 2c8bff0b user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/util.c.

274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
** available timers.
**
** Returns 0 on error (no more timers available), with 1+ being valid
** timer IDs.
*/
int fossil_timer_start(){
  int i;
  static char once = 0;
  if(!once){
    once = 1;
    memset(&fossilTimerList, 0,
           count(fossilTimerList));
  }
  for( i = 0; i < FOSSIL_TIMER_COUNT; ++i ){
    struct FossilTimer * ft = &fossilTimerList[i];
    if(ft->id) continue;
    ft->id = i+1;
    fossil_cpu_times( &ft->u, &ft->s );
    break;
  }







<
<
<
<
<
<







274
275
276
277
278
279
280






281
282
283
284
285
286
287
** available timers.
**
** Returns 0 on error (no more timers available), with 1+ being valid
** timer IDs.
*/
int fossil_timer_start(){
  int i;






  for( i = 0; i < FOSSIL_TIMER_COUNT; ++i ){
    struct FossilTimer * ft = &fossilTimerList[i];
    if(ft->id) continue;
    ft->id = i+1;
    fossil_cpu_times( &ft->u, &ft->s );
    break;
  }