Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
g++ warning:

    src/lstm/functions.h:152:35: warning:
        unused parameter ‘x’ [-Wunused-parameter]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Feb 14, 2019
1 parent 3556152 commit c0523ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lstm/functions.h
Expand Up @@ -149,7 +149,7 @@ struct HPrime {
}
};
struct UnityFunc {
inline double operator()(double x) const { return 1.0; }
inline double operator()(double /*x*/) const { return 1.0; }
};
struct IdentityFunc {
inline double operator()(double x) const { return x; }
Expand Down

0 comments on commit c0523ee

Please sign in to comment.