Skip to content

Commit

Permalink
IOSS: Fix so all paths have return value
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Oct 16, 2023
1 parent 73dfe3c commit 2156b0a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/seacas/libraries/ioss/src/Ioss_FileInfo.C
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include <sys/mount.h>
#include <sys/param.h>
#elif defined(__OpenBSD__)
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/types.h>
#else
#include <sys/statfs.h>
#endif
Expand Down Expand Up @@ -172,9 +172,7 @@ namespace Ioss {
//: Return TRUE if file is on an NFS filesystem...
bool FileInfo::is_nfs() const
{
#if defined(__IOSS_WINDOWS__)
return false;
#else
#if !defined(__IOSS_WINDOWS__)
auto tmp_path = pathname();
if (tmp_path.empty()) {
char *current_cwd = getcwd(nullptr, 0);
Expand Down Expand Up @@ -202,6 +200,7 @@ namespace Ioss {
#endif
}
#endif
return false;
}

//: Time of last data modification. See 'man stat(2)'
Expand Down

0 comments on commit 2156b0a

Please sign in to comment.