Unverified Commit d0c9129d by nihui Committed by GitHub

fix warning unused parameter in release build (#2251)

parent e00d27c6
...@@ -400,7 +400,7 @@ public: ...@@ -400,7 +400,7 @@ public:
void setSource(EShSource s) { source = s; } void setSource(EShSource s) { source = s; }
EShSource getSource() const { return source; } EShSource getSource() const { return source; }
#else #else
void setSource(EShSource s) { assert(s == EShSourceGlsl); } void setSource(EShSource s) { assert(s == EShSourceGlsl); (void)s; }
EShSource getSource() const { return EShSourceGlsl; } EShSource getSource() const { return EShSourceGlsl; }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment