Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuke macOS warnings #26264

Merged
merged 6 commits into from
Feb 22, 2024
Merged

Nuke macOS warnings #26264

merged 6 commits into from
Feb 22, 2024

Conversation

andyp1per
Copy link
Collaborator

More macOS compile warnings to nuke

@@ -84,7 +84,7 @@ class AP_Filesystem {
int stat(const char *pathname, struct stat *stbuf);

// stat variant for scripting
typedef struct {
typedef struct Stat {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious, what warning is this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

../../libraries/AP_Filesystem/AP_Filesystem.h:87:19: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   stat_t
../../libraries/AP_Filesystem/AP_Filesystem.h:93:9: note: type is not C-compatible due to this member declaration
        bool is_directory(void) const {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../libraries/AP_Filesystem/AP_Filesystem.h:96:7: note: type is given name 'stat_t' for linkage purposes by this typedef declaration
    } stat_t;
      ^
1 warning generated.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tridge tridge merged commit 76c0b0a into ArduPilot:master Feb 22, 2024
92 checks passed
@andyp1per andyp1per deleted the pr-mac-warnings branch February 24, 2024 10:37
@rmackay9
Copy link
Contributor

This is included in 4.5.6-beta1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 4.5.5-beta2
Development

Successfully merging this pull request may close these issues.

5 participants