Skip to content

Compilation warnings #1

Description

@mbojan

I'm not sure how serious this is:

grorbitDist.c: In function ‘d_grorbitDist’:
grorbitDist.c:83:25: warning: argument 1 range [18446744071562067969, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   preNetwork = (int **) calloc(nodeCount + 1, sizeof(int *));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/share/R/include/R.h:55:0,
                 from /home/mbojan/R/library/4.0/ergm/include/ergm_edgetree_common.do_not_include_directly.h:13,
                 from /home/mbojan/R/library/4.0/ergm/include/ergm_edgetree.h:13,
                 from /home/mbojan/R/library/4.0/ergm/include/edgetree.h:11,
                 from grorbitDist.h:14,
                 from grorbitDist.c:11:

and

grorbitFactor.c: In function ‘d_grorbitFactor’:
grorbitFactor.c:251:30: warning: argument 1 range [18446744071562067969, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
    tempChanges = (double **) calloc(attributeCount + 1, sizeof(double *));
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/share/R/include/R.h:55:0,
                 from /home/mbojan/R/library/4.0/ergm/include/ergm_edgetree_common.do_not_include_directly.h:13,
                 from /home/mbojan/R/library/4.0/ergm/include/ergm_edgetree.h:13,
                 from /home/mbojan/R/library/4.0/ergm/include/edgetree.h:11,
                 from grorbitFactor.h:14,
                 from grorbitFactor.c:11:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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