History

avutil/hwcontext_vulkan: Include hwcontext.h

struct Foo * declares a new type (namely struct Foo) if there is no declaration of struct Foo already visible in the current scope; otherwise it is just a pointer to an element of the already declared type "struct Foo". There is a gotcha with the first case: struct Foo is only declared in its scope; a later declaration of struct Foo in an enclosing scope declares a different type. This happens in hwcontext_vulkan.h if it is included before hwcontext.h, because some declarations of struct AVHWDeviceContext and struct AVHWFramesContext have function prototype scope. Compilers warn about this (during checkheaders): ‘struct AVHWDeviceContext’ declared inside parameter list will not be visible outside of this definition or declaration Fix this by including hwcontext.h.

Andreas Rheinhardt committed 2 years ago

Commit 888e2c01 parent 0f78b261 file · +1 −0Browse files

Unified · Split

libavutil/hwcontext_vulkan.h+1−0
@@ -26,6 +26,7 @@ · 25 unmodified lines
26 26
27#include "pixfmt.h"27#include "pixfmt.h"
28#include "frame.h"28#include "frame.h"
29#include "hwcontext.h"
29 30
30typedef struct AVVkFrame AVVkFrame;31typedef struct AVVkFrame AVVkFrame;
31 32

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t