Skip to content

Commit

Permalink
Mark virtual functions as override
Browse files Browse the repository at this point in the history
This fixes clang 3.6 -Winconsistent-missing-override warnings:

    In file included from /tmp/fuzzylite/fuzzylite/src/variable/OutputVariable.cpp:29:
    /tmp/fuzzylite/fuzzylite/./fl/norm/SNorm.h:43:24: warning: 'clone' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
            virtual SNorm* clone() const = 0;
                           ^
    /tmp/fuzzylite/fuzzylite/./fl/norm/Norm.h:50:23: note: overridden virtual function is here
            virtual Norm* clone() const = 0;
                          ^
  • Loading branch information
AMDmi3 committed Apr 8, 2015
1 parent 4736f12 commit 509ccac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzzylite/fl/norm/SNorm.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace fl {

FL_DEFAULT_COPY_AND_MOVE(SNorm)

virtual SNorm* clone() const = 0;
virtual SNorm* clone() const FL_IOVERRIDE = 0;
};
}
#endif /* FL_SNORM_H */
Expand Down
2 changes: 1 addition & 1 deletion fuzzylite/fl/norm/TNorm.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace fl {

FL_DEFAULT_COPY_AND_MOVE(TNorm)

virtual TNorm* clone() const = 0;
virtual TNorm* clone() const FL_IOVERRIDE = 0;
};
}
#endif /* TNORM_H */
Expand Down

0 comments on commit 509ccac

Please sign in to comment.