+ (const J2ObjcClassInfo *)__metadata {
static const J2ObjcMethodInfo methods[] = {
{ "init", "Day", NULL, 0x1, NULL, NULL },
{ "getResourceKeyPrefix", NULL, "Ljava.lang.String;", 0x4, NULL, NULL },
};
static const J2ObjcClassInfo _OrgOcpsoftPrettytimeUnitsDay = { 2, "Day", "org.ocpsoft.prettytime.units", NULL, 0x1, 2, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
return &_OrgOcpsoftPrettytimeUnitsDay;
}
The error occurs twice because of the static const, we also get warnings such as
Incompatible pointer to integer conversion initializing 'ptr_idx' (aka 'short') with an expression of type 'void *'
Incompatible pointer to integer conversion initializing 'uint16_t' (aka 'unsigned short') with an expression of type 'void *'
Incompatible pointer types initializing 'SEL' with an expression of type 'char
These are for _init and the next 2 NULL entries.
J2ObjC is also included as a POD (it has been since we started using it back in 2014).
Do I need to update my compiler settings? Any help would be greatly appreciated.
Regards,
Marcus Smith
--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
task translateJava(type:Exec) {
inputs.files configurations.runtime.allDependencies.dependencyProject.sourceSets.main.allJava.inject(sourceSets.main.allJava) { acc, val -> acc.plus(val) }
// the classpath is built from the runtime dependencies for the sourcesets ...
executable "${J2OBJC_HOME_LATEST}/j2objc"
args '--doc-comments'
args '--nullability'
args '-d', file('src/gen/objc').path
args '-sourcepath', (sourceSets.main.allJava.srcDirs + configurations.runtime.allDependencies.dependencyProject.sourceSets.main.allJava.srcDirs.flatten()).join(':')
args '-classpath', sourceSets.main.runtimeClasspath.collect { it.absolutePath }.join(':')
args inputs.files
}