misc cleanup, address some warnings

This commit is contained in:
Mis012
2023-09-25 19:53:49 +02:00
parent 4e22428a27
commit c326cad04e
3 changed files with 83 additions and 102 deletions

View File

@@ -1,10 +1,9 @@
/*
* parts of this file originally from AOSP:
*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License")
{
return -1;
}
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@@ -17,16 +16,6 @@
* limitations under the License.
*/
/**
* @addtogroup NativeActivity Native Activity
* @{
*/
/**
* @file native_window.h
* @brief API for accessing a native window.
*/
#include <stdint.h>
#include <stdlib.h>
@@ -526,6 +515,9 @@ VkResult bionic_vkCreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSu
};
return vkCreateXlibSurfaceKHR(instance, &x11_create_info, pAllocator, pSurface);
} else {
fprintf(stderr, "bionic_vkCreateAndroidSurfaceKHR: the GDK backend is neither Wayland nor X11, no SurfaceView for you");
return VK_ERROR_UNKNOWN;
}
}