Skip to content

Commit aa29bfe

Browse files
committed
Ignore unused var
1 parent bb88686 commit aa29bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_cpp_kernel/kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, *args, **kwargs):
113113
self.master_path = mastertemp[1]
114114
self.resDir = path.join(path.dirname(path.realpath(__file__)), 'resources')
115115
filepath = path.join(self.resDir, 'master.cpp')
116-
subprocess.call(['g++', filepath, '-std=c++14', '-rdynamic', '-ldl', '-o', self.master_path])
116+
subprocess.call(['g++', filepath, '-std=c++14', '-rdynamic', '-Wno-unused-but-set-variable', '-Wno-unused-parameter', '-Wno-unused-variable', '-ldl', '-o', self.master_path])
117117

118118
def cleanup_files(self):
119119
"""Remove all the temporary files created by the kernel"""
@@ -149,7 +149,7 @@ def create_jupyter_subprocess(self, cmd):
149149
self._read_from_stdin)
150150

151151
def compile_with_gpp(self, source_filename, binary_filename, cflags=None, ldflags=None):
152-
cflags = ['-pedantic', '-fPIC', '-shared', '-rdynamic'] + cflags
152+
cflags = ['-pedantic', '-fPIC', '-shared', '-rdynamic', '-Wno-unused-but-set-variable', '-Wno-unused-parameter', '-Wno-unused-variable'] + cflags
153153
if self.linkMaths:
154154
cflags = cflags + ['-lm']
155155
if self.wError:

0 commit comments

Comments
 (0)