],
},
}],
+# This old compiler is really bad at figuring out when things are uninitialized, so ignore it.
+ [ '<(mac_sdk)==10.6', {
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS': [
+ '-Wno-uninitialized',
+ ],
+ },
+ }],
],
'configurations': {
'Debug': {
SkAutoTime atm("JPEG Encode");
#endif
- const WriteScanline writer = ChooseWriter(bm);
- if (NULL == writer) {
- return false;
- }
-
SkAutoLockPixels alp(bm);
if (NULL == bm.getPixels()) {
return false;
if (setjmp(sk_err.fJmpBuf)) {
return false;
}
- jpeg_create_compress(&cinfo);
+ // Keep after setjmp or mark volatile.
+ const WriteScanline writer = ChooseWriter(bm);
+ if (NULL == writer) {
+ return false;
+ }
+
+ jpeg_create_compress(&cinfo);
cinfo.dest = &sk_wstream;
cinfo.image_width = bm.width();
cinfo.image_height = bm.height();