"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtshadertools/src/glslang/patches/0001-Disable-unused-arg-warning-in-release-builds.patch" (6 Jun 2022, 1086 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From 7b5dffd20da0a9a458479298050b17ec917c5a90 Mon Sep 17 00:00:00 2001
    2 From: Laszlo Agocs <laszlo.agocs@qt.io>
    3 Date: Wed, 23 Oct 2019 12:12:46 +0200
    4 Subject: [PATCH] Disable unused arg warning in release builds
    5 
    6 Change-Id: Ib68abb9658ae2bb2374071ce3f11e04cffae05c0
    7 ---
    8  src/3rdparty/glslang/glslang/MachineIndependent/localintermediate.h | 2 +-
    9  1 file changed, 1 insertion(+), 1 deletion(-)
   10 
   11 diff --git a/src/3rdparty/glslang/glslang/MachineIndependent/localintermediate.h b/src/3rdparty/glslang/glslang/MachineIndependent/localintermediate.h
   12 index 13b0f6c..7e11aa9 100644
   13 --- a/src/3rdparty/glslang/glslang/MachineIndependent/localintermediate.h
   14 +++ b/src/3rdparty/glslang/glslang/MachineIndependent/localintermediate.h
   15 @@ -377,7 +377,7 @@ public:
   16      void setSource(EShSource s) { source = s; }
   17      EShSource getSource() const { return source; }
   18  #else
   19 -    void setSource(EShSource s) { assert(s == EShSourceGlsl); }
   20 +    void setSource(EShSource /*s*/) { /*assert(s == EShSourceGlsl);*/ }
   21      EShSource getSource() const { return EShSourceGlsl; }
   22  #endif
   23  
   24 -- 
   25 2.9.3.windows.2
   26