Skip to content

Commit

Permalink
SHERLOCK: Silence very noisy GCC warning
Browse files Browse the repository at this point in the history
Since 'w' and 'h' are members of ManagedSurface, using them as
input parameters to a method caused GCC to warn about them being
shadowed. For just about every file in the Sherlock engine...
  • Loading branch information
Torbjörn Andersson committed May 29, 2016
1 parent e317b87 commit e963f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sherlock/surface.h
Expand Up @@ -121,7 +121,7 @@ class Surface : public BaseSurface {
virtual void addDirtyRect(const Common::Rect &r) {}
public:
Surface() : BaseSurface() {}
Surface(int w, int h) : BaseSurface(w, h) {}
Surface(int width, int height) : BaseSurface(width, height) {}
};

} // End of namespace Sherlock
Expand Down

0 comments on commit e963f8b

Please sign in to comment.