mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
remove now redundant workaround in katie_check_defined()
compiled source is not executed to check its return value since check_cxx_source_compiles() is used now Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0df4ee65de
commit
aa849d0b30
1 changed files with 1 additions and 5 deletions
|
@ -19,12 +19,8 @@ function(KATIE_CHECK_DEFINED FORDEFINITION FROMHEADER)
|
|||
#include <stdio.h>
|
||||
${includedata}
|
||||
|
||||
static bool willprint = true; // bypass compiler/linker optimizations
|
||||
int main() {
|
||||
willprint = false;
|
||||
if (willprint) {
|
||||
return printf(\"%p\", &${FORDEFINITION});
|
||||
}
|
||||
printf(\"%p\", &${FORDEFINITION});
|
||||
return 0;
|
||||
}
|
||||
"
|
||||
|
|
Loading…
Add table
Reference in a new issue