-
-
Notifications
You must be signed in to change notification settings - Fork 2
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(OpenGeode): update to new warnings #133
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -53,22 +53,23 @@ namespace geode | |||||
FaultBlock( FaultBlock&& other ) noexcept; | ||||||
~FaultBlock(); | ||||||
|
||||||
static ComponentType component_type_static() | ||||||
[[nodiscard]] static ComponentType component_type_static() | ||||||
{ | ||||||
return ComponentType{ "FaultBlock" }; | ||||||
} | ||||||
|
||||||
ComponentType component_type() const final | ||||||
[[nodiscard]] ComponentType component_type() const final | ||||||
{ | ||||||
return component_type_static(); | ||||||
} | ||||||
|
||||||
ComponentID component_id() const | ||||||
[[nodiscard]] ComponentID component_id() const | ||||||
{ | ||||||
return { this->component_type_static(), this->id() }; | ||||||
}; | ||||||
|
||||||
FaultBlock( FaultBlocksKey ) : FaultBlock(){}; | ||||||
public: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
Suggested change
Additional contextinclude/geode/geosciences/explicit/mixin/core/fault_block.hpp:51: previously declared here public:
^ |
||||||
FaultBlock( FaultBlocksKey ) : FaultBlock() {}; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: all parameters should be named in a function [readability-named-parameter]
Suggested change
|
||||||
|
||||||
void set_fault_block_name( | ||||||
std::string_view name, FaultBlocksBuilderKey ) | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -64,25 +64,26 @@ namespace geode | |||||
Horizon( Horizon&& other ) noexcept; | ||||||
~Horizon(); | ||||||
|
||||||
static ComponentType component_type_static() | ||||||
[[nodiscard]] static ComponentType component_type_static() | ||||||
{ | ||||||
return ComponentType{ "Horizon" }; | ||||||
} | ||||||
|
||||||
ComponentType component_type() const final | ||||||
[[nodiscard]] ComponentType component_type() const final | ||||||
{ | ||||||
return component_type_static(); | ||||||
} | ||||||
|
||||||
ComponentID component_id() const | ||||||
[[nodiscard]] ComponentID component_id() const | ||||||
{ | ||||||
return { this->component_type_static(), this->id() }; | ||||||
}; | ||||||
|
||||||
bool has_type() const; | ||||||
[[nodiscard]] bool has_type() const; | ||||||
|
||||||
HORIZON_TYPE type() const; | ||||||
[[nodiscard]] HORIZON_TYPE type() const; | ||||||
|
||||||
public: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
Suggested change
Additional contextinclude/geode/geosciences/explicit/mixin/core/horizon.hpp:51: previously declared here public:
^ |
||||||
Horizon( HorizonsKey ) : Horizon() {} | ||||||
Horizon( HORIZON_TYPE type, HorizonsKey ) : Horizon( type ) {} | ||||||
|
||||||
|
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.
warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers]
Additional context
include/geode/geosciences/explicit/mixin/core/fault.hpp:51: previously declared here
public: ^