From c28abdb5aceac3fdf9383b0ee464d3578fbb86b3 Mon Sep 17 00:00:00 2001 From: Artur Ryt Date: Tue, 12 Feb 2019 19:24:53 +0100 Subject: cmCursesMainForm: Fix lambda return type deducing warning It was issued by sparc compiler on Solaris system See !2947 --- Source/CursesDialog/cmCursesMainForm.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 3fe1834..906dd02 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -647,11 +647,12 @@ void cmCursesMainForm::RemoveEntry(const char* value) return; } - auto removeIt = std::find_if(this->Entries->begin(), this->Entries->end(), - [value](cmCursesCacheEntryComposite* entry) { - const char* val = entry->GetValue(); - return val && !strcmp(value, val); - }); + auto removeIt = + std::find_if(this->Entries->begin(), this->Entries->end(), + [value](cmCursesCacheEntryComposite* entry) -> bool { + const char* val = entry->GetValue(); + return val != nullptr && !strcmp(value, val); + }); if (removeIt != this->Entries->end()) { this->CMakeInstance->UnwatchUnusedCli(value); -- cgit v0.12 f650b0c99'>refslogtreecommitdiffstats
path: root/Tests/Module/WriteCompilerDetectionHeader/main.cpp
blob: 192094c1be4caaccd1e204bfcec07ad829e0f591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#include "test_compiler_detection.h"

#define PREFIX TEST
#include "compile_tests.h"

#ifdef TEST_COMPILER_C_STATIC_ASSERT
#error Expect no C features defined
#endif

int main()
{
  return 0;
}