commit | f7c511957f527d1bcbab4af6020497452b65d688 | [log] [tgz] |
---|---|---|
author | Paul Harris <harris.pc@gmail.com> | Wed Aug 17 01:48:41 2022 +0800 |
committer | GitHub <noreply@github.com> | Tue Aug 16 10:48:41 2022 -0700 |
tree | fddb969b5e3ce04e85cdb50454d513f4ba357bc6 | |
parent | a66de58af9565586832c276fbb4251fc416bf07f [diff] |
Audit and fixups for GCC and Clang (#7212) Added (for compiler versions that support it): -Wmissing-declarations -Wzero-as-null-pointer-constant Then, fixes to problems identified by the extra warnings Tested only on GCC 9.4.0 Adjusted the CPP code generator to output nullptr where appropriate, to satisfy -Wzero-as-null-pointer-constant Added a lot of 'static' declarations in front of functions, to satisfy -Wmissing-declarations, and wrap static function defs in anonymous namespaces. There are advantages to both anonymous namespaces and static, it seems that marking a function as static will not publish the name in the symbol table at all, thus giving the linker less work to do.
FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
Go to our landing page to browse our documentation.
and more in progress...
flatbuffers
tag for any questions regarding FlatBuffers.To contribute to this project, see CONTRIBUTING.
Please see our Security Policy for reporting vulnerabilities.
Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.