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
/tmp/arduino_06b29c2745641c533fb2062c298c350d/sketch_nov10a.ino: In function 'void doSomething()':
sketch_nov10a:2: error: 'void doSomething()' was declared 'extern' and later 'static' [-fpermissive]
static void doSomething()
^
sketch_nov10a:2: error: previous declaration of 'void doSomething()' [-fpermissive]
static void doSomething()
^
exit status 1
'void doSomething()' was declared 'extern' and later 'static' [-fpermissive]
The user did not in fact declare something one way and later another way.
The "static" keyword was dropped from the generated prototype.
It is perfectly valid to add "static" to a function definition, in order to stop that function name from clashing with functions named the same in other compilation units.
The text was updated successfully, but these errors were encountered:
It would be nice if you tested changes to the function prototype-generator to make sure that code does not break from one minor release of the IDE to another. Maybe have some regression testing suites?
In IDE 1.6.5 this is what the generated output from the IDE is:
See forum post: http://forum.arduino.cc/index.php?topic=358602
Example code:
Generates errors in IDE 1.6.6:
The user did not in fact declare something one way and later another way.
Generated code from the IDE:
The "static" keyword was dropped from the generated prototype.
It is perfectly valid to add "static" to a function definition, in order to stop that function name from clashing with functions named the same in other compilation units.
The text was updated successfully, but these errors were encountered: