[LTP] [PATCH] hugepage15: Resolve compile time warning generating with -O0
Petr Vorel
pvorel@suse.cz
Sun Feb 12 22:34:44 CET 2023
Hi Tarun,
> Instead of turning off the optimizaton with -O0 to resolve unwanted
> behaviour of clang with goto statements, this will make use of clang
> pragma to turn off the optimization for just clang compiler. This way,
> gcc won't throw unwanted warning on turning off optimization:
> "warning: _FORTIFY_SOURCE requires compiling with optimization (-O)".
Thanks!
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
> Also, removed redundant header-includes.
BTW this does not apply because there was change which is not in your fork:
1106777cd ("hugemmap15: Use TST_TEST_TCONF() for unsupported archs")
No need to repost, but please always rebase to current master before posting
Kind regards,
Petr
More information about the ltp
mailing list