forked from onnx/onnx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent unused variables from generating warnings across all platform…
…s. (onnx#1930) * Change the return type for the zipmap operator to match the description in the spec. * Prevent unused variables from generating warnings across all platforms. This was observed in onnxruntime when __ONNX_NO_DOC_STRINGS was enabled. * nit change
- Loading branch information
1 parent
3fb58de
commit a8d24ec
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) ONNX Project Contributors. | ||
// Licensed under the MIT license. | ||
|
||
#pragma once | ||
|
||
namespace ONNX_NAMESPACE { | ||
#ifdef _WIN32 | ||
#define ONNX_UNUSED_PARAMETER(x) (x) | ||
#else | ||
#define ONNX_UNUSED_PARAMETER(x) (void)(x) | ||
#endif | ||
} // namespace ONNX_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters