Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
5e35ea51
Unverified
Commit
5e35ea51
authored
Sep 28, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings and compiler detection
parent
2fc88d52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
CMakeLists.txt
+6
-3
src/Structure.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
5e35ea51
...
@@ -46,8 +46,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
...
@@ -46,8 +46,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package
(
Filesystem REQUIRED
)
find_package
(
Filesystem REQUIRED
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wextra -Wno-unused-parameter"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 8.4.0
)
message
(
FATAL_ERROR
"Your gnu compiler is too old, please use a more recent one"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wno-unused-parameter -Wno-missing-field-initializers"
)
endif
()
endif
()
if
(
MSVC
)
if
(
MSVC
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4"
)
...
@@ -261,7 +264,7 @@ set(project_headers
...
@@ -261,7 +264,7 @@ set(project_headers
${
PROJECT_SOURCE_DIR
}
/include/cif++/TlsParser.hpp
${
PROJECT_SOURCE_DIR
}
/include/cif++/TlsParser.hpp
)
)
add_library
(
cifpp
${
project_sources
}
${
project_headers
}
${
PROJECT
_SOURCE_DIR
}
/src/SymOpTable_data.hpp
)
add_library
(
cifpp
${
project_sources
}
${
project_headers
}
${
CMAKE
_SOURCE_DIR
}
/src/SymOpTable_data.hpp
)
set_target_properties
(
cifpp PROPERTIES POSITION_INDEPENDENT_CODE ON
)
set_target_properties
(
cifpp PROPERTIES POSITION_INDEPENDENT_CODE ON
)
target_include_directories
(
cifpp
target_include_directories
(
cifpp
...
...
src/Structure.cpp
View file @
5e35ea51
...
@@ -248,8 +248,8 @@ struct AtomImpl
...
@@ -248,8 +248,8 @@ struct AtomImpl
AtomImpl
(
cif
::
Datablock
&
db
,
cif
::
Row
&
row
)
AtomImpl
(
cif
::
Datablock
&
db
,
cif
::
Row
&
row
)
:
mDb
(
db
)
:
mDb
(
db
)
,
mID
(
row
[
"id"
].
as
<
std
::
string
>
())
,
mID
(
row
[
"id"
].
as
<
std
::
string
>
())
,
mRow
(
row
)
,
mRefcount
(
1
)
,
mRefcount
(
1
)
,
mRow
(
row
)
,
mCompound
(
nullptr
)
,
mCompound
(
nullptr
)
{
{
prefetch
();
prefetch
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment