You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In src/init.c, you don't specify the fourth field of your R_CMethodDef declaration. If you compile with -Wmissing-field-initializers in gcc, you will see the warning:
init.c:18:5: warning: missing initializer for field ‘types’ of ‘R_CMethodDef {aka const struct <anonymous>}’ [-Wmissing-field-initializers]
{"C_polygauss", (DL_FUNC) &C_polygauss, 13},
^
In file included from init.c:12:0:
/usr/share/R/include/R_ext/Rdynload.h:55:31: note: ‘types’ declared here
R_NativePrimitiveArgType *types;
^~~~~
init.c:19:5: warning: missing initializer for field ‘types’ of ‘R_CMethodDef {aka const struct <anonymous>}’ [-Wmissing-field-initializers]
{NULL, NULL, 0}
^
In file included from init.c:12:0:
/usr/share/R/include/R_ext/Rdynload.h:55:31: note: ‘types’ declared here
R_NativePrimitiveArgType *types;
^~~~~
In src/init.c, you don't specify the fourth field of your
R_CMethodDef
declaration. If you compile with-Wmissing-field-initializers
in gcc, you will see the warning:You can see what it's complaining about here https://cran.r-project.org/doc/manuals/R-exts.html#Registering-native-routines (see their
myC_t
bit). It's probably not dangerous, but it's also easy enough to fix. Just change yourCEntries
line to this:It's probably not dangerous though, so feel free to close the issue if you prefer.
The text was updated successfully, but these errors were encountered: