fix warning unused parameter in release build (#2251)

This commit is contained in:
nihui
2020-05-28 20:12:01 +08:00
committed by GitHub
parent e00d27c6d6
commit d0c9129d2f

View File

@@ -400,7 +400,7 @@ public:
void setSource(EShSource s) { source = s; }
EShSource getSource() const { return source; }
#else
void setSource(EShSource s) { assert(s == EShSourceGlsl); }
void setSource(EShSource s) { assert(s == EShSourceGlsl); (void)s; }
EShSource getSource() const { return EShSourceGlsl; }
#endif