-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[FIX] Fix clang12 warnings #7593
Conversation
@@ -98,7 +98,7 @@ class JSONRuntimeBase : public ModuleNode { | |||
} | |||
} | |||
|
|||
virtual void SaveToBinary(dmlc::Stream* stream) { | |||
void SaveToBinary(dmlc::Stream* stream) override { |
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.
Should be final
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.
done
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.
I agree with TQ’s comments
@@ -55,7 +55,7 @@ class JSONRuntimeBase : public ModuleNode { | |||
LoadGraph(graph_json_); | |||
} | |||
|
|||
const char* type_key() const { return "json"; } | |||
const char* type_key() const override { return "json"; } |
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.
should also be final as well, do it to other places that overrides
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.
done
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.
Actually, arm compute lib inherits from this class. I'm leaving everything as override.
fee84a8
to
c154301
Compare
These fixes include
override
@junrushao1994 @jroesch @areusch @rohanmukh