Skip to content

Commit

Permalink
Change unknown cpu features to a warning instead of an error
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Apr 26, 2018
1 parent 4d7c457 commit 4906ae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/cpufeatures.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
cpuFeatures->dfp = !!(hwcap & PPC_FEATURE_HAS_DFP);
cpuFeatures->vsx = !!(hwcap & PPC_FEATURE_HAS_VSX);
#else
#error Do not know how to get CPU features on Linux.
#warning "Do not know how to get CPU features on Linux."
#endif
}
#else
#error Do not know how to get CPU features.
#warning "Do not know how to get CPU features."
#endif
2 changes: 1 addition & 1 deletion src/core/cpufeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ typedef struct CPUFeatures {
char dfp;
char vsx;
#else
#error No VS_TARGET_CPU_* defined/handled!
#warning "No VS_TARGET_CPU_* defined/handled!"
#endif
} CPUFeatures;

Expand Down

0 comments on commit 4906ae8

Please sign in to comment.