Skip to content

Version 2.0 breaks implicit function declaration #1194

Closed
@tigoe

Description

@tigoe

With the latest version, implicit function declaration no longer works, making it incompatible with many existing Arduino sketches.

Implicit function definition is a common pattern in many Arduino sketches on the net, and was an intentional choice in the original Arduino API. Unfortunately, it no longer works in the ESP8266 Arduino port.

In previous versions, this worked:

#include <ESP8266WiFi.h>
void setup() {
}

void loop() {
  myFunction();
}

void myFunction() {
}

Now it produces the error "myFunction was not declared in this scope".

Here's an example that worked with the previous version but fails now, for testing.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions