diff options
| author | Alistair Delva <adelva@google.com> | 2020-09-16 08:33:13 -0700 |
|---|---|---|
| committer | Alistair Delva <adelva@google.com> | 2020-09-16 08:33:15 -0700 |
| commit | 11d8c35e70a7f4876ffa7919032ed62fe16732cc (patch) | |
| tree | 4dcbc0b065f8c87be2251fcf09ce22da2eedf1d1 | |
| parent | 79983270474d1a7ac38dcd238d41d901a4c34264 (diff) | |
| download | device_generic_goldfish-opengl-11d8c35e70a7f4876ffa7919032ed62fe16732cc.tar.gz device_generic_goldfish-opengl-11d8c35e70a7f4876ffa7919032ed62fe16732cc.tar.bz2 device_generic_goldfish-opengl-11d8c35e70a7f4876ffa7919032ed62fe16732cc.zip | |
Warning fix for asg_context_create
Seen on a full build:
warning: unused function 'asg_context_create' [-Wunused-function]
static struct asg_context asg_context_create(
This warning is emitted because some files include
address_space_graphics_types.h but do not use asg_context_create().
Make the function inline so the compiler ignores the issue.
Change-Id: I0dfe155d50aa76e9fa0b36ba9f6e93ae0a05b3d3
| -rw-r--r-- | system/OpenglSystemCommon/address_space_graphics_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/OpenglSystemCommon/address_space_graphics_types.h b/system/OpenglSystemCommon/address_space_graphics_types.h index 5f0e9b67..753644bf 100644 --- a/system/OpenglSystemCommon/address_space_graphics_types.h +++ b/system/OpenglSystemCommon/address_space_graphics_types.h @@ -124,7 +124,7 @@ struct asg_context { // ptrs into RingStorage // Helper function that will be common between guest and host: // Given ring storage and a write buffer, returns asg_context that // is the correct view into it. -static struct asg_context asg_context_create( +static inline struct asg_context asg_context_create( char* ring_storage, char* buffer, uint32_t buffer_size) { |
