-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
I made these blocks in Blockly and when compiled they produce these warnings:
warning: passing argument 1 of 'MMA7455_getxyz10' from incompatible pointer type [enabled by default]
warning: passing argument 2 of 'MMA7455_getxyz10' from incompatible pointer type [enabled by default]
warning: passing argument 3 of 'MMA7455_getxyz10' from incompatible pointer type [enabled by default]
In SimpleIDE, this doesn't stop the code from compiling or even running at all, but in Blockly, the same exact code would not compile because it contained warnings I assume. Is this intended?
Blockly Code:
/* SERIAL_TERMINAL USED */
#include "simpletools.h"
#include "mma7455.h"
int X;
int Y;
int Z;
int main()
{
MMA7455_init(7, 8, 6);
X = 0;
Y = 0;
Z = 0;
while (1)
{
MMA7455_getxyz10( & X, & Y, & Z);
print("X = %d\n", X);
print("Y = %d\n", Y);
print("Z = %d\n", Z);
pause(1000);
}
}