Fossil

Check-in [3753b87d]
Login

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

Overview
Comment:Still more fixes for harmless compiler warnings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | DBP-workflow
Files: files | file ages | folders
SHA1: 3753b87d949a77f14e731df1709abe2828b67279
User & Date: drh 2014-12-01 21:36:32
Context
2014-12-02
05:50
Try to avoid creating files with names of unrecognized --options by checking for explicit argument count where a file is required. Correct minor typo in error output. check-in: 9f63c8a3 user: andybradford tags: DBP-workflow
2014-12-01
21:36
Still more fixes for harmless compiler warnings. check-in: 3753b87d user: drh tags: DBP-workflow
21:29
More compiler warning fixes. check-in: 155c8b64 user: drh tags: DBP-workflow
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/mkversion.c.

5
6
7
8
9
10
11

12
13
14
15
16
17
18
**
**     ./a.out manifest.uuid manifest VERSION
**
** Note that the manifest.uuid and manifest files are generated by Fossil.
*/
#include <stdio.h>
#include <string.h>


int main(int argc, char *argv[]){
    FILE *m,*u,*v;
    char *z;
    int i, x, d;
    char b[1000];
    char vx[1000];







>







5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
**
**     ./a.out manifest.uuid manifest VERSION
**
** Note that the manifest.uuid and manifest files are generated by Fossil.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc, char *argv[]){
    FILE *m,*u,*v;
    char *z;
    int i, x, d;
    char b[1000];
    char vx[1000];

Changes to src/name.c.

414
415
416
417
418
419
420
421
422
423

424
425
426
427
428
429
430

  if( zName==0 || zName[0]==0 ) return 0;
  rid = symbolic_name_to_rid(zName, zType);
  if( rid<0 ){
    fossil_fatal("ambiguous name: %s", zName);
  }else if( rid==0 ){
    fossil_fatal("not found: %s", zName);
  }else{
    return rid;
  }

}
int name_to_rid(const char *zName){
  return name_to_typed_rid(zName, "*");
}

/*
** WEBPAGE: ambiguous







<
<

>







414
415
416
417
418
419
420


421
422
423
424
425
426
427
428
429

  if( zName==0 || zName[0]==0 ) return 0;
  rid = symbolic_name_to_rid(zName, zType);
  if( rid<0 ){
    fossil_fatal("ambiguous name: %s", zName);
  }else if( rid==0 ){
    fossil_fatal("not found: %s", zName);


  }
  return rid;
}
int name_to_rid(const char *zName){
  return name_to_typed_rid(zName, "*");
}

/*
** WEBPAGE: ambiguous