Skip to content

Commit

Permalink
Igrnore invalid offset warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Dec 12, 2024
1 parent 8c177ae commit 46aa3d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions cmake/BuildFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,9 @@ target_compile_options(cse_common_interface INTERFACE
# /MTd # Creates a debug multithreaded executable file using LIBCMTD.lib. (set through CMAKE_MSVC_RUNTIME_LIBRARY)
>
>
$<$<CXX_COMPILER_ID:GNU>:
-Wall
>
$<$<CXX_COMPILER_ID:Clang,AppleClang>:
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:
-Wall
-Wno-invalid-offsetof # "offsetof" is essential to CSE, though it's use isn't guaranteed to be safe for non-POD structures in C++ implementations. See https://stackoverflow.com/questions/1129894/why-cant-you-use-offsetof-on-non-pod-structures-in-c.
>
)

Expand Down
2 changes: 1 addition & 1 deletion src/CNFIELDS.DEF
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

column uses include 7-89:
datatype, limits, and units are put in srfd.c [fdtab.c], 1-91.
*/

/* This file is preprocessed for each product; it is believed that fields
information may vary freely amoung products.
Expand Down

0 comments on commit 46aa3d5

Please sign in to comment.