disable flex register warnings

This commit is contained in:
James Cherry 2020-11-09 21:11:29 -07:00
parent 8ced99d0fa
commit c9296a0d1f
7 changed files with 2 additions and 9 deletions

View File

@ -452,8 +452,8 @@ target_include_directories(OpenSTA
target_compile_options(OpenSTA
PRIVATE
$<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security>
$<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security>
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security>
$<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security -Wno-deprecated-register>
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security -Wno-deprecated-register>
)
# Disable compiler specific extensions like gnu++11.

View File

@ -18,7 +18,6 @@
// Liberty function expression lexical analyzer
#include "util/FlexDisableRegister.hh"
#include "Debug.hh"
#include "StringUtil.hh"
#include "liberty/LibertyExprPvt.hh"

View File

@ -18,7 +18,6 @@
#include <ctype.h>
#include <string.h>
#include "util/FlexDisableRegister.hh"
#include "liberty/LibertyParser.hh"
#include "LibertyParse.hh"

View File

@ -19,7 +19,6 @@
#include <string.h>
#include <string>
#include "util/FlexDisableRegister.hh"
#include "StringUtil.hh"
#include "parasitics/SpefReaderPvt.hh"
#include "SpefParse.hh"

View File

@ -16,7 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "util/FlexDisableRegister.hh"
#include "sdf/Sdf.hh"
#include "SdfParse.hh"

View File

@ -1,2 +0,0 @@
// Remove register declaration (not allowed in c++17).
#define register

View File

@ -16,7 +16,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "util/FlexDisableRegister.hh"
#include "Debug.hh"
#include "VerilogNamespace.hh"
#include "verilog/VerilogReaderPvt.hh"