Skip to content

Compilation warnings and error in Release mode #73

@hector-cao

Description

@hector-cao

When I enable -Wall and build ipp-crypto in Release mode, there are a bunch of build warnings and warnings are treated as errors that make my compilation failed.

$ gcc --version
gcc (Ubuntu 13.2.0-13ubuntu1) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Here is the cmake command:

cmake ./ -DARCH=intel64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall "

To remove all warnings, i need to add following flags:

                             -Wno-unused-function -Wno-unused-variable \                                                         
                             -Wno-unused-but-set-variable \                                                                      
                             -Wno-pedantic -Wno-comment \                                                                        
                             -Wno-array-parameter -Wno-strict-aliasing \                                                         
                             -Wno-parentheses -Wno-unknown-pragmas \                                                             
                             -Wno-missing-braces

I m wondering if some of those warnings can be easily fixed ?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions