[SCM] Socket Wrapper Repository - branch master updated

Andreas Schneider asn at samba.org
Thu Mar 22 13:01:57 UTC 2018


The branch, master has been updated
       via  33da03f cmake: Fix configure check for fall-through attribute
      from  f7fc3f5 cmake: Fix checks for attributes

https://git.samba.org/?p=socket_wrapper.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 33da03f478955daa04adca67fc012379bf0d2a39
Author: Andreas Schneider <asn at samba.org>
Date:   Wed Feb 28 07:36:58 2018 +0100

    cmake: Fix configure check for fall-through attribute
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Ralph Boehme <slow at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 ConfigureChecks.cmake | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)


Changeset truncated at 500 lines:

diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index f06e780..93010f4 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -205,22 +205,13 @@ int main(void) {
 check_c_source_compiles("
 #define FALL_THROUGH __attribute__((fallthrough))
 
-enum direction_e {
-    UP = 0,
-    DOWN,
-};
-
 int main(void) {
-    enum direction_e key = UP;
-    int i = 10;
-    int j = 0;
+    int i = 2;
 
-    switch (key) {
-    case UP:
-        i = 5;
+    switch (i) {
+    case 0:
         FALL_THROUGH;
-    case DOWN:
-        j = i * 2;
+    case 1:
         break;
     default:
         break;


-- 
Socket Wrapper Repository



More information about the samba-cvs mailing list