[Mesa-dev] Mesa (master): glsl: Fix ' format not a string literal and no format arguments' warning.

José Fonseca jfonseca at vmware.com
Thu Sep 16 12:12:17 PDT 2010


On Thu, 2010-09-16 at 11:44 -0700, Vinson Lee wrote:
> g++ -o build/linux-x86-debug/glsl/loop_controls.os -c -O0 -g3 -m32
> -mstackrealign -mmmx -msse -msse2 -Wall -Wno-long-long -ffast-math
> -fmessage-length=0 -Wmissing-field-initializers -Werror=pointer-arith
> -fPIC -DHAVE_LLVM=0x0207 -DDEBUG -DNDEBUG -D_GNU_SOURCE
> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_POSIX_SOURCE
> -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
> -DPTHREADS -DHAVE_POSIX_MEMALIGN -Isrc/mapi -Isrc/mesa -Iinclude
> -Isrc/gallium/include -Isrc/gallium/auxiliary -Isrc/gallium/drivers
> -Isrc/gallium/winsys src/glsl/loop_controls.cpp
> src/glsl/loop_controls.cpp: In function ‘int
> calculate_iterations(ir_rvalue*, ir_rvalue*, ir_rvalue*,
> ir_expression_operation)’:
> src/glsl/loop_controls.cpp:88: warning: format not a string literal
> and no format arguments
> 
> 

Could you repeat the command line, but with

  g++ -o build/linux-x86-debug/glsl/loop_controls.I -E ... 

instead of 

  g++ -o build/linux-x86-debug/glsl/loop_controls.os -c

and look for the code in question in loop_controls.I and see how it
looks?

Jose



More information about the mesa-dev mailing list