Repository navigation
[#573] Add version coverage for gcc and clang debug mode - #594
Conversation
92dcf5f to
b2fd8b9
Compare
|
@bassamadnan CI |
1734b04 to
80a21fc
Compare
|
@bassamadnan Remember the authors files |
yes i will, resolving some of the tests . The issue is in Mac/FreeBSD systems, the attribute unused is just placed randomly(???) which makes the unused parameter warning stop at compilation (due to -Werror) there are a few ways to resolve this (change the location of ifdefs, or mark the parameters as attribute unused where they are supposed to be) I personally vouch for a refactoring to only include platform specific libraries and functions if needed, though that can be done as part of another issue i feel. I am really not sure why gcc debug is failing, i am looking into that ATM. |
|
@bassamadnan CI |
For now can I remove the '-Wextra' from mac and FreeBSD systems? I'll see what I can do for the linux gcc debug check. |
|
Yeah, try that |
3294685 to
149190f
Compare
|
@jesperpedersen I am running the tests on my fork, I can see they keep getting started under this PR too, I think you start them? I am not sure, thhis is very much appreciated. Rest assured I will inform you after I pass all tests, currently im just playing around to make it work with different solutions i can find online. |
c59bb50 to
2dbc4f5
Compare
|
@jesperpedersen Sorry to keep you waiting, you can review it now. Credits to everyone here. I had to specify the |
|
Merged. Thanks for your contribution ! |
|
@bassamadnan Please, port to pgagroal now |
Addressing #573 , The version details for different address sanitizer flags can be found here pgexporter/pgexporter#209 , as a refresher:
-fsanitize-address-use-after-scope: helps detecting when a variable is accessed after it has gone out of scope such as when a pointer to a local variable continues to be used after the function returns or when a reference to a variable in an inner scope is accessed after that scope ends.-fsanitize-recover=address: continues execution after error detection.-Wextrafor extra warnings around operatorsIgnored the sign compare flag, although did resolve warnings which were trivial. Most of the ones left arise from macro usage or are unecessary and may cause bugs. Please let me know if any changes/refactoring is needed.