diff --git a/src/pystencils_autodiff/framework_integration/texture_astnodes.py b/src/pystencils_autodiff/framework_integration/texture_astnodes.py
index 8598426184eea7983d7258d0f0493d15c74ddef7..2e462e87deae96cc1267718adc6a8e14897f1f70 100644
--- a/src/pystencils_autodiff/framework_integration/texture_astnodes.py
+++ b/src/pystencils_autodiff/framework_integration/texture_astnodes.py
@@ -125,7 +125,7 @@ auto {{texture_object}}Destroyer = std::unique_ptr(nullptr, [&](){
     """)
     CODE_TEMPLATE_PITCHED2D = jinja2.Template(""" !!! TODO!!! """)
     CODE_TEMPLATE_CUDA_ARRAY = jinja2.Template("""
-#   pragma GCC diagnostic ignored "-Wconversion"
+//#   pragma GCC diagnostic ignored "-Wconversion"
 auto channel_desc_{{texture_name}} = {{channel_desc}};
 {{ create_array }}
 {{ copy_array }}
@@ -141,7 +141,7 @@ std::shared_ptr<void> {{array}}Destroyer(nullptr, [&](...){
     cudaFreeArray({{array}});
     cudaUnbindTexture({{texture_namespace}}{{texture_name}});
 });
-#   pragma GCC diagnostic pop
+// #pragma GCC diagnostic pop
 """)
 
     def __init__(self, texture, device_data_ptr, use_texture_objects=True, texture_namespace=''):