Skip to content

Commit

Permalink
Merge pull request #646 from opesci/clang-warnings
Browse files Browse the repository at this point in the history
compiler: Make clang behave similarly to gcc
  • Loading branch information
FabioLuporini authored Sep 20, 2018
2 parents 4a5a538 + c40956d commit 643a914
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devito/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ class ClangCompiler(Compiler):
CC = 'clang'
CPP = 'clang++'

def __init__(self, *args, **kwargs):
super(ClangCompiler, self).__init__(*args, **kwargs)
self.cflags += ['-march=native', '-Wno-unused-result', '-Wno-unused-variable']


class IntelCompiler(Compiler):
"""Set of standard compiler flags for the Intel toolchain."""
Expand Down

0 comments on commit 643a914

Please sign in to comment.