Skip to content

Commit

Permalink
[dash-SAI] Enable warnings as errors (#466)
Browse files Browse the repository at this point in the history
* [dash-SAI] Enable warnings as errors

For better catching mistakes and bugs

* Add missing api

* Fix api struct name
  • Loading branch information
kcudnik authored Nov 24, 2023
1 parent a4009ba commit 056d03e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dash-pipeline/SAI/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CXXFLAGS_COMMON+= -Wcast-align
CXXFLAGS_COMMON+= -Wcast-qual
CXXFLAGS_COMMON+= -Wconversion
CXXFLAGS_COMMON+= -Wdisabled-optimization
#CXXFLAGS_COMMON+= -Werror # disabled until warnings will be fixed
CXXFLAGS_COMMON+= -Werror
CXXFLAGS_COMMON+= -Wextra
CXXFLAGS_COMMON+= -Wfloat-equal
CXXFLAGS_COMMON+= -Wformat=2
Expand Down
5 changes: 5 additions & 0 deletions dash-pipeline/SAI/src/sai_dash_router_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ sai_router_interface_api_t dash_sai_router_interface_api_impl = {

DASH_GENERIC_QUAD_API(router_interface)
DASH_GENERIC_STATS_API(router_interface)

.create_router_interfaces = 0,
.remove_router_interfaces = 0,
.set_router_interfaces_attribute = 0,
.get_router_interfaces_attribute = 0,
};

0 comments on commit 056d03e

Please sign in to comment.