diff --git a/scripts/ci/extends/template-build-linux.yml b/scripts/ci/extends/template-build-linux.yml
index d7475ed0c361b97cfef47a8c8a07d997673bae28..b6242a809a4d96f2eae41925b99cd1972cc826c0 100644
--- a/scripts/ci/extends/template-build-linux.yml
+++ b/scripts/ci/extends/template-build-linux.yml
@@ -110,5 +110,5 @@
       fi
     - |
       if [[ "$CHECK_WARNINGS" = true ]] ; then
-        if [[ $(cat $log_file | grep warning -i | grep -v 'was built for newer macOS version' | grep -v 'WARNING: no license files found' | grep -v 'WARNING: multiple license files found' | grep -v 'means the weak symbol cannot be overridden at runtime') ]]; then printf 'There were compiler warnings:\n\n'; cat $log_file | grep warning -i | grep -v 'was built for newer macOS version' | grep -v 'WARNING: no license files found' | grep -v 'WARNING: multiple license files found' | grep -v 'means the weak symbol cannot be overridden at runtime'; exit 1; fi
+        if [[ $(cat $log_file | grep warning -i | grep -v 'was built for newer macOS version' | grep -v 'WARNING: no license files found' | grep -v 'WARNING: multiple license files found' | grep -v 'means the weak symbol cannot be overridden at runtime' | grep -v 'lto-wrapper: warning:') ]]; then printf 'There were compiler warnings:\n\n'; cat $log_file | grep warning -i | grep -v 'was built for newer macOS version' | grep -v 'WARNING: no license files found' | grep -v 'WARNING: multiple license files found' | grep -v 'means the weak symbol cannot be overridden at runtime' | grep -v 'lto-wrapper: warning:'; exit 1; fi
       fi