Skip to content
Snippets Groups Projects
Commit c76033ca authored by Lars Kanis's avatar Lars Kanis
Browse files

Avoid warning:

../../../../ext/fox16_c/frames_wrap.cpp: In function ‘VALUE FXGradientBar_gradient(FX::FXGradientBar*, FX::FXint)’:
../../../../ext/fox16_c/frames_wrap.cpp:2465:37: warning: zero-length gnu_printf format string [-Wformat-zero-length]
           rb_raise(rb_eNoMemError,"");
                                     ^
parent 4540716c
No related branches found
No related tags found
No related merge requests found
......@@ -239,19 +239,18 @@ public:
if(FXMALLOC(&ramp,FXColor,nramp)){
self->gradient(ramp,nramp);
ary=rb_ary_new2(nramp);
for(i=0; i<nramp; i++){
rb_ary_store(ary,i,to_ruby(ramp[i]));
}
FXFREE(&ramp);
return ary;
}
else{
rb_raise(rb_eNoMemError,"");
for(i=0; i<nramp; i++){
rb_ary_store(ary,i,to_ruby(ramp[i]));
}
FXFREE(&ramp);
return ary;
}else{
rb_raise(rb_eNoMemError,"Out of memory");
}
}
else{
return rb_ary_new();
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment