Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Use -Wno-unused-const-variable for header files #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ export default {
if (fileExt === '.hpp' || fileExt === '.hh' || fileExt === '.h') {
// Don't warn about #pragma once when linting header files
args.push('-Wno-pragma-once-outside-header');
// Don't warn about unused-const-variable when linting header files
args.push('-Wno-unused-const-variable');
}

if (this.clangSuppressWarnings) {
Expand Down