]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.cpp
Suppress some deprecation warnings from internal use
[libs/gl.git] / source / program.cpp
index 116e16e7251544b902ac7082e32fb82f8c624666..a5128e9b77436ef13f24bbf1de7b2e7f3b263526 100644 (file)
@@ -28,17 +28,17 @@ Program::Program()
        init();
 }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 Program::Program(const ProgramBuilder::StandardFeatures &features)
 {
        init();
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
        ProgramBuilder builder(features);
        builder.add_shaders(*this);
-#pragma GCC diagnostic pop
        link();
 }
+#pragma GCC diagnostic pop
 
 Program::Program(const std::string &source)
 {