Fossil SCM
Fix harmless compiler warnings.
Commit
b51dcc316218021d8ff34f7a87bf2d254e8befda
Parent
425df28c0258cc0…
2 files changed
+5
-5
+2
-2
+5
-5
| --- src/translate.c | ||
| +++ src/translate.c | ||
| @@ -40,15 +40,15 @@ | ||
| 40 | 40 | ** rather than text that is to be output via cgi_printf(). Render it |
| 41 | 41 | ** as such. |
| 42 | 42 | ** |
| 43 | 43 | ** Enhancement #2: |
| 44 | 44 | ** |
| 45 | -** Comments of the form: "/* @-comment: CC" cause CC to become a | |
| 46 | -** comment character for the @-substitution. Typical values for CC are | |
| 47 | -** "--" (for SQL text) or "#" (for Tcl script) or "//" (for C++ code). | |
| 48 | -** Lines of subsequent @-blocks that begin with CC are omitted from the | |
| 49 | -** output. | |
| 45 | +** Comments of the form: "|* @-comment: CC" (where "|" is really "/") | |
| 46 | +** cause CC to become a comment character for the @-substitution. | |
| 47 | +** Typical values for CC are "--" (for SQL text) or "#" (for Tcl script) | |
| 48 | +** or "//" (for C++ code). Lines of subsequent @-blocks that begin with | |
| 49 | +** CC are omitted from the output. | |
| 50 | 50 | ** |
| 51 | 51 | */ |
| 52 | 52 | #include <stdio.h> |
| 53 | 53 | #include <ctype.h> |
| 54 | 54 | #include <stdlib.h> |
| 55 | 55 |
| --- src/translate.c | |
| +++ src/translate.c | |
| @@ -40,15 +40,15 @@ | |
| 40 | ** rather than text that is to be output via cgi_printf(). Render it |
| 41 | ** as such. |
| 42 | ** |
| 43 | ** Enhancement #2: |
| 44 | ** |
| 45 | ** Comments of the form: "/* @-comment: CC" cause CC to become a |
| 46 | ** comment character for the @-substitution. Typical values for CC are |
| 47 | ** "--" (for SQL text) or "#" (for Tcl script) or "//" (for C++ code). |
| 48 | ** Lines of subsequent @-blocks that begin with CC are omitted from the |
| 49 | ** output. |
| 50 | ** |
| 51 | */ |
| 52 | #include <stdio.h> |
| 53 | #include <ctype.h> |
| 54 | #include <stdlib.h> |
| 55 |
| --- src/translate.c | |
| +++ src/translate.c | |
| @@ -40,15 +40,15 @@ | |
| 40 | ** rather than text that is to be output via cgi_printf(). Render it |
| 41 | ** as such. |
| 42 | ** |
| 43 | ** Enhancement #2: |
| 44 | ** |
| 45 | ** Comments of the form: "|* @-comment: CC" (where "|" is really "/") |
| 46 | ** cause CC to become a comment character for the @-substitution. |
| 47 | ** Typical values for CC are "--" (for SQL text) or "#" (for Tcl script) |
| 48 | ** or "//" (for C++ code). Lines of subsequent @-blocks that begin with |
| 49 | ** CC are omitted from the output. |
| 50 | ** |
| 51 | */ |
| 52 | #include <stdio.h> |
| 53 | #include <ctype.h> |
| 54 | #include <stdlib.h> |
| 55 |
+2
-2
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -602,12 +602,12 @@ | ||
| 602 | 602 | for(i=0; zEmptyDirs[i]; i++){ |
| 603 | 603 | if( zEmptyDirs[i]==',' ) zEmptyDirs[i] = ' '; |
| 604 | 604 | } |
| 605 | 605 | blob_init(&dirsList, zEmptyDirs, -1); |
| 606 | 606 | while( blob_token(&dirsList, &dirName) ){ |
| 607 | - const char *zDir = blob_str(&dirName); | |
| 608 | - const char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir); | |
| 607 | + char *zDir = blob_str(&dirName); | |
| 608 | + char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir); | |
| 609 | 609 | switch( file_wd_isdir(zPath) ){ |
| 610 | 610 | case 0: { /* doesn't exist */ |
| 611 | 611 | fossil_free(zPath); |
| 612 | 612 | zPath = mprintf("%s/%s/x", g.zLocalRoot, zDir); |
| 613 | 613 | if( file_mkfolder(zPath, 0, 1)!=0 ) { |
| 614 | 614 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -602,12 +602,12 @@ | |
| 602 | for(i=0; zEmptyDirs[i]; i++){ |
| 603 | if( zEmptyDirs[i]==',' ) zEmptyDirs[i] = ' '; |
| 604 | } |
| 605 | blob_init(&dirsList, zEmptyDirs, -1); |
| 606 | while( blob_token(&dirsList, &dirName) ){ |
| 607 | const char *zDir = blob_str(&dirName); |
| 608 | const char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir); |
| 609 | switch( file_wd_isdir(zPath) ){ |
| 610 | case 0: { /* doesn't exist */ |
| 611 | fossil_free(zPath); |
| 612 | zPath = mprintf("%s/%s/x", g.zLocalRoot, zDir); |
| 613 | if( file_mkfolder(zPath, 0, 1)!=0 ) { |
| 614 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -602,12 +602,12 @@ | |
| 602 | for(i=0; zEmptyDirs[i]; i++){ |
| 603 | if( zEmptyDirs[i]==',' ) zEmptyDirs[i] = ' '; |
| 604 | } |
| 605 | blob_init(&dirsList, zEmptyDirs, -1); |
| 606 | while( blob_token(&dirsList, &dirName) ){ |
| 607 | char *zDir = blob_str(&dirName); |
| 608 | char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir); |
| 609 | switch( file_wd_isdir(zPath) ){ |
| 610 | case 0: { /* doesn't exist */ |
| 611 | fossil_free(zPath); |
| 612 | zPath = mprintf("%s/%s/x", g.zLocalRoot, zDir); |
| 613 | if( file_mkfolder(zPath, 0, 1)!=0 ) { |
| 614 |