diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-07-14 13:22:13 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-07-14 13:23:38 -0700 |
commit | 3279df42ed7231d2ed6d2328c66c1e080ad49f39 (patch) | |
tree | 67bb6f17c16b12b4f8e55e66d751d644b0675518 /src/mga_reg.h | |
parent | 66ee371516c48c30b67684317a8e3c24ba7f1f4e (diff) |
From gcc 14.1:
mga_dri.c: In function ‘MGADRIScreenInit’:
mga_dri.c:757:40: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
757 | pMGADRI = (MGADRIPtr)calloc( sizeof(MGADRIRec), 1 );
| ^~~~~~~~~
mga_dri.c:757:40: note: earlier argument should specify number of elements, later size of each element
mga_dri.c:767:22: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
767 | calloc( sizeof(MGADRIServerPrivateRec), 1 );
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/12>
Diffstat (limited to 'src/mga_reg.h')
0 files changed, 0 insertions, 0 deletions