Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix compiler warning on builds that lack support for FuseFS. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
398c5cd1a7fce2977ad515075976025b |
User & Date: | drh 2022-02-08 17:14:04 |
Context
2022-02-09
| ||
06:59 | Display build/patch number for the MSVC compiler. ... (check-in: 487e4652 user: danield tags: trunk) | |
2022-02-08
| ||
17:14 | Fix compiler warning on builds that lack support for FuseFS. ... (check-in: 398c5cd1 user: drh tags: trunk) | |
17:07 | Make the "fusefs" command and help text available, even on builds that lack support for FuseFS. ... (check-in: b1a78a65 user: drh tags: trunk) | |
Changes
Changes to src/fusefs.c.
︙ | ︙ | |||
18 19 20 21 22 23 24 | ** This module implements the userspace side of a Fuse Filesystem that ** contains all check-ins for a fossil repository. ** ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for ** the Fuse Filesystem, of course. */ | < > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ** This module implements the userspace side of a Fuse Filesystem that ** contains all check-ins for a fossil repository. ** ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for ** the Fuse Filesystem, of course. */ #include "config.h" #include <stdio.h> #include <string.h> #ifdef FOSSIL_HAVE_FUSEFS #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include "fusefs.h" |
︙ | ︙ | |||
336 337 338 339 340 341 342 | azNewArgv[3] = zMountPoint; azNewArgv[4] = 0; g.localOpen = 0; /* Prevent tags like "current" and "prev" */ fuse_main(4, azNewArgv, &fusefs_methods, NULL); fusefs_reset(); fusefs_clear_path(); #else | | > | 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 | azNewArgv[3] = zMountPoint; azNewArgv[4] = 0; g.localOpen = 0; /* Prevent tags like "current" and "prev" */ fuse_main(4, azNewArgv, &fusefs_methods, NULL); fusefs_reset(); fusefs_clear_path(); #else fprintf(stderr, "The FuseFS is not available in this build.\n"); exit(1); #endif /* FOSSIL_HAVE_FUSEFS */ } /* ** Return version numbers for the FUSE header that was used at compile-time ** and/or the FUSE library that was loaded at runtime. */ |
︙ | ︙ |