Fix some gcc compiler warnings.
[COMPILER] * BUG: Fix some gcc warnings. [GB.QT4] * BUG: Clipboard.Paste() correctly converts image to ARGB premultiplied format. [GB.QT5] * BUG: Clipboard.Paste() correctly converts image to ARGB premultiplied format. [GB.PCRE] * BUG: Fix a gcc warning.
This commit is contained in:
parent
31eafccb89
commit
5e79f29fdc
4 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@ static void compile(void *_object)
|
|||
static void exec(void *_object, int lsubject)
|
||||
{
|
||||
int ret;
|
||||
char code[8];
|
||||
char code[16];
|
||||
|
||||
if (!THIS->code)
|
||||
{
|
||||
|
|
|
@ -182,7 +182,7 @@ static void paste(const QMimeData *data, const char *fmt)
|
|||
{
|
||||
QImage *image = new QImage();
|
||||
*image = qvariant_cast<QImage>(data->imageData());
|
||||
image->convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||
*image = image->convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||
GB.ReturnObject(CIMAGE_create(image));
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -323,7 +323,7 @@ void FORM_webpage(char *source)
|
|||
char c;
|
||||
const char *p;
|
||||
int line;
|
||||
char buf[8];
|
||||
char buf[16];
|
||||
bool has_contents = FALSE;
|
||||
|
||||
line = FORM_FIRST_LINE;
|
||||
|
|
|
@ -677,7 +677,7 @@ bool TRANS_check_declaration(void)
|
|||
PATTERN *TRANS_get_constant_value(TRANS_DECL *decl, PATTERN *current)
|
||||
{
|
||||
int index;
|
||||
TRANS_NUMBER number;
|
||||
TRANS_NUMBER number = {0};
|
||||
int type;
|
||||
PATTERN value;
|
||||
|
||||
|
|
Loading…
Reference in a new issue