Skip to content

sys/embunit: Fix incompatible declaration in outputter.#9242

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
jcarrano:fix-embunit-invalid-cast
May 31, 2018
Merged

sys/embunit: Fix incompatible declaration in outputter.#9242
miri64 merged 1 commit intoRIOT-OS:masterfrom
jcarrano:fix-embunit-invalid-cast

Conversation

@jcarrano
Copy link
Copy Markdown
Contributor

Contribution description

OutputterPrintHeaderFunction is declared as a function of one parameter but CompilerOutputter_printHeader was defined as taking two. Thus the compiler rightly issues a warning:

/home/jcarrano/source/vanillaRIOT/sys/embunit/CompilerOutputter.c:76:41: error: 'CompilerOutputter_printHeader' undeclared here (not in a function); did you mean 'CompilerOutputter_printFailure'?
     (OutputterPrintHeaderFunction)      CompilerOutputter_printHeader,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It is a mystery why this code compiled before.

OutputterPrintHeaderFunction is declared as a function of 1 parameter
but CompilerOutputter_printHeader was defined as taking 2.

It is a mystery why this code compiled before.
Copy link
Copy Markdown
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, if possible provide upstream?

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels May 30, 2018
@miri64
Copy link
Copy Markdown
Member

miri64 commented May 30, 2018

If anyone hits the merge button before myself, please check if the unittests actually ran on Murdock ;-).

@miri64
Copy link
Copy Markdown
Member

miri64 commented May 30, 2018

Fail is unrelated, but unittests did not run (see #9249)

@miri64
Copy link
Copy Markdown
Member

miri64 commented May 30, 2018

Fail is unrelated, but unittests did not run (see #9249)

Ah, it's hidden in here: https://ci.riot-os.org/RIOT-OS/RIOT/9242/40e58a1afc8a9a797a1f0b7fcd955e3506d2b540/output/compile/tests/unittests/native.txt

@miri64 miri64 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: run tests If set, CI server will run tests on hardware for the labeled PR CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels May 30, 2018
@jcarrano
Copy link
Copy Markdown
Contributor Author

@miri64 embunit does not seem to be actively developed anymore. The "official" code is in a CVS repo on SourceForge, if that says something. The last file upload is from 2004!!!!!

@miri64
Copy link
Copy Markdown
Member

miri64 commented May 31, 2018

Yeah... I thought there might be some GitHub repo that picked it up, but I seem to have been mistaken :/

@miri64 miri64 merged commit 4782877 into RIOT-OS:master May 31, 2018
@cladmi cladmi added this to the Release 2018.07 milestone Jul 10, 2018
@jcarrano jcarrano deleted the fix-embunit-invalid-cast branch November 8, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants