FLTK logo

[master] e186ee0 - Fix compiler warning [-Wignored-qualifiers]

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] e186ee0 - Fix compiler warning [-Wignored-qualifiers] "Albrecht Schlosser" Dec 19, 2021  
 
commit e186ee0af3c42c0a5fcffead0428ed784a602363
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Dec 20 02:03:38 2021 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Dec 20 02:03:38 2021 +0100

    Fix compiler warning [-Wignored-qualifiers]
    
    In function â??int glutExtensionSupported(const char*)â??:
      warning: type qualifiers ignored on cast result type

 src/glut_compatibility.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/glut_compatibility.cxx src/glut_compatibility.cxx
index cf51e13..0a5a6b3 100644
--- src/glut_compatibility.cxx
+++ src/glut_compatibility.cxx
@@ -454,7 +454,7 @@ int glutExtensionSupported( const char* extension )
   if (!extension || strchr(extension, ' ')) return 0;
 
   const char *extensions, *start;
-  const int len = (const int)strlen( extension );
+  const int len = (int)strlen(extension);
 
   start = extensions = (const char *) glGetString(GL_EXTENSIONS);
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.