Skip to content

Please use (void) and not () #342

Description

@TApplencourt

For example in:
https://github.com/oneapi-src/level-zero/blob/de1e9f42641cf7513672c2f3a5c306034a4f7e96/include/loader/ze_loader.h#L97C16-L97C46

I suppose here you mean no parameter, not unknow number of parameters.

The other are

h2yaml diagnostic: modified_include/loader/ze_loader.h:71:1: Warning: `zelSetDriverTeardown` defines a function with no parameters, consider specifying `void`.
h2yaml diagnostic: modified_include/loader/ze_loader.h:77:1: Warning: `zelSetDelayLoaderContextTeardown` defines a function with no parameters, consider specifying `void`.
h2yaml diagnostic: modified_include/loader/ze_loader.h:83:1: Warning: `zelLoaderContextTeardown` defines a function with no parameters, consider specifying `void`.
h2yaml diagnostic: modified_include/loader/ze_loader.h:89:1: Warning: `zelEnableTracingLayer` defines a function with no parameters, consider specifying `void`.
h2yaml diagnostic: modified_include/loader/ze_loader.h:95:1: Warning: `zelCheckIsLoaderInTearDown` defines a function with no parameters, consider specifying `void`.
h2yaml diagnostic: modified_include/loader/ze_loader.h:136:1: Warning: `zelDisableTracingLayer` defines a function with no parameters, consider specifying `void`.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions