Skip to content

Repro will not build with GCC-14 #4

@Roland-F

Description

@Roland-F

When i try to build your repro with GCC-14, i got some errors.

jpeg_mem_dest.h: In function 'empty_mem_output_buffer':
jpeg_mem_dest.h:5:27: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
5 | ((cinfo)->err->msg_code = (code),
| ^
jpeg_mem_dest.h:48:5: note: in expansion of macro 'ERREXIT1'
48 | ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);
| ^~~~~~~~
jpeg_mem_dest.h: In function 'jpeg_mem_dest_2':
jpeg_mem_dest.h:2:27: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
2 | ((cinfo)->err->msg_code = (code),
| ^
jpeg_mem_dest.h:82:5: note: in expansion of macro 'ERREXIT'
82 | ERREXIT(cinfo, JERR_BUFFER_SIZE);
| ^~~~~~~
jpeg_mem_dest.h:5:27: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
5 | ((cinfo)->err->msg_code = (code),
| ^
jpeg_mem_dest.h:105:7: note: in expansion of macro 'ERREXIT1'
105 | ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);
| ^~~~~~~~
drv_vuduo2.c: In function 'drv_vuduo2_backlight':
drv_vuduo2.c:210:13: warning: variable 'value' set but not used [-Wunused-but-set-variable]
210 | int value = 0;
| ^~~~~

Any help possible from your side?
With the problem with the build as x86 system, i would prefer to rename the file jpeg_mem_dest.h through jpeg_mem_help.h
and let the function inside still as jpeg_mem_dest().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions