-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
Nuke macOS warnings #26264
Conversation
@@ -84,7 +84,7 @@ class AP_Filesystem { | |||
int stat(const char *pathname, struct stat *stbuf); | |||
|
|||
// stat variant for scripting | |||
typedef struct { | |||
typedef struct Stat { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
d362ad8
to
b0f9fc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is included in 4.5.6-beta1 |
More macOS compile warnings to nuke