Skip to content

コンパイル時の警告 #32

@wistaria

Description

@wistaria

Ubuntu Noble (gcc 13.2)でコンパイルすると以下の警告が出ます。無視して大丈夫でしょうか?

In function 'lui_1d_allocate',
inlined from 'read_W90' at /usr/src/stdface-0.5-1/src/Wannier90.c:175:16:
/usr/src/stdface-0.5-1/src/setmemory.c:51:33: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
/usr/include/stdlib.h: In function 'read_W90':
/usr/include/stdlib.h:675:14: note: in a call to allocation function 'calloc' declared here
675 | extern void *calloc (size_t __nmemb, size_t __size)
| ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions