Skip to content

Commit

Permalink
Fix missing virtual destructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Apr 2, 2020
1 parent aca189d commit fe1bec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion swoc++/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ set(CC_FILES

add_library(swoc++ STATIC ${CC_FILES})
#add_compile_options(-Wall -Wextra -Werror -Wno-unused-parameter -Wno-format-truncation -Wno-stringop-overflow -Wno-invalid-offsetof)
target_compile_options(swoc++ PRIVATE -Wall -Wextra -Werror -Wno-unused-parameter -Wno-format-truncation -Wno-stringop-overflow -Wno-invalid-offsetof)
target_compile_options(swoc++ PRIVATE -Wall -Wextra -Werror -Wnon-virtual-dtor -Wno-unused-parameter -Wno-stringop-overflow)

# Not quite sure how this works, but I think it generates one of two paths depending on the context.
# That is, the generator functions return non-empty strings only in the corresponding context.
Expand Down
2 changes: 2 additions & 0 deletions swoc++/include/swoc/bwf_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ namespace bwf
class ArgPack
{
public:
virtual ~ArgPack() = default; /// Force virtual destructor for subclasses.

/** Get argument at index @a idx.
*
* @param idx Argument index.
Expand Down

0 comments on commit fe1bec1

Please sign in to comment.