Page MenuHomePhabricator

[llvm-c] Make LLVMGetStringErrorTypeId a proper prototype
ClosedPublic

Authored by wanders on May 5 2019, 6:58 AM.

Details

Summary

In C a function declaration with an empty argument list isn't a real
prototype, it will allow calling the function with any number of
arguments. It will also cause warnings when used in C code compiled with
'-Wstrict-prototypes'

Diff Detail

Repository
rL LLVM

Event Timeline

wanders created this revision.May 5 2019, 6:58 AM
Herald added a project: Restricted Project. · View Herald Transcript
whitequark accepted this revision.May 5 2019, 3:44 PM
This revision is now accepted and ready to land.May 5 2019, 3:44 PM
This revision was automatically updated to reflect the committed changes.