Fossil SCM
Fix compiler warning on builds that lack support for FuseFS.
Commit
398c5cd1a7fce2977ad515075976025bae1418deec3bd19499ff8f5b6064d380
Parent
b1a78a65f61e6fc…
1 file changed
+3
-2
+3
-2
| --- src/fusefs.c | ||
| +++ src/fusefs.c | ||
| @@ -20,14 +20,14 @@ | ||
| 20 | 20 | ** |
| 21 | 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | 23 | ** the Fuse Filesystem, of course. |
| 24 | 24 | */ |
| 25 | -#ifdef FOSSIL_HAVE_FUSEFS | |
| 26 | 25 | #include "config.h" |
| 27 | 26 | #include <stdio.h> |
| 28 | 27 | #include <string.h> |
| 28 | +#ifdef FOSSIL_HAVE_FUSEFS | |
| 29 | 29 | #include <errno.h> |
| 30 | 30 | #include <fcntl.h> |
| 31 | 31 | #include <stdlib.h> |
| 32 | 32 | #include <unistd.h> |
| 33 | 33 | #include <sys/types.h> |
| @@ -338,11 +338,12 @@ | ||
| 338 | 338 | g.localOpen = 0; /* Prevent tags like "current" and "prev" */ |
| 339 | 339 | fuse_main(4, azNewArgv, &fusefs_methods, NULL); |
| 340 | 340 | fusefs_reset(); |
| 341 | 341 | fusefs_clear_path(); |
| 342 | 342 | #else |
| 343 | - fossil_fatal("The FuseFS is not available in this build."); | |
| 343 | + fprintf(stderr, "The FuseFS is not available in this build.\n"); | |
| 344 | + exit(1); | |
| 344 | 345 | #endif /* FOSSIL_HAVE_FUSEFS */ |
| 345 | 346 | } |
| 346 | 347 | |
| 347 | 348 | /* |
| 348 | 349 | ** Return version numbers for the FUSE header that was used at compile-time |
| 349 | 350 |
| --- src/fusefs.c | |
| +++ src/fusefs.c | |
| @@ -20,14 +20,14 @@ | |
| 20 | ** |
| 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | ** the Fuse Filesystem, of course. |
| 24 | */ |
| 25 | #ifdef FOSSIL_HAVE_FUSEFS |
| 26 | #include "config.h" |
| 27 | #include <stdio.h> |
| 28 | #include <string.h> |
| 29 | #include <errno.h> |
| 30 | #include <fcntl.h> |
| 31 | #include <stdlib.h> |
| 32 | #include <unistd.h> |
| 33 | #include <sys/types.h> |
| @@ -338,11 +338,12 @@ | |
| 338 | g.localOpen = 0; /* Prevent tags like "current" and "prev" */ |
| 339 | fuse_main(4, azNewArgv, &fusefs_methods, NULL); |
| 340 | fusefs_reset(); |
| 341 | fusefs_clear_path(); |
| 342 | #else |
| 343 | fossil_fatal("The FuseFS is not available in this build."); |
| 344 | #endif /* FOSSIL_HAVE_FUSEFS */ |
| 345 | } |
| 346 | |
| 347 | /* |
| 348 | ** Return version numbers for the FUSE header that was used at compile-time |
| 349 |
| --- src/fusefs.c | |
| +++ src/fusefs.c | |
| @@ -20,14 +20,14 @@ | |
| 20 | ** |
| 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | ** the Fuse Filesystem, of course. |
| 24 | */ |
| 25 | #include "config.h" |
| 26 | #include <stdio.h> |
| 27 | #include <string.h> |
| 28 | #ifdef FOSSIL_HAVE_FUSEFS |
| 29 | #include <errno.h> |
| 30 | #include <fcntl.h> |
| 31 | #include <stdlib.h> |
| 32 | #include <unistd.h> |
| 33 | #include <sys/types.h> |
| @@ -338,11 +338,12 @@ | |
| 338 | g.localOpen = 0; /* Prevent tags like "current" and "prev" */ |
| 339 | fuse_main(4, azNewArgv, &fusefs_methods, NULL); |
| 340 | fusefs_reset(); |
| 341 | fusefs_clear_path(); |
| 342 | #else |
| 343 | fprintf(stderr, "The FuseFS is not available in this build.\n"); |
| 344 | exit(1); |
| 345 | #endif /* FOSSIL_HAVE_FUSEFS */ |
| 346 | } |
| 347 | |
| 348 | /* |
| 349 | ** Return version numbers for the FUSE header that was used at compile-time |
| 350 |