[vala-extra-vapis] Avoid various "static const" warnings



commit 2a955f928af94f2378e4ae264d1b4e808eb0b738
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Jan 30 21:17:01 2019 +0100

    Avoid various "static const" warnings

 librabbitmq.vapi  | 6 +++---
 sdl2-android.vapi | 4 ++--
 sdl2-mixer.vapi   | 2 +-
 sdl2-net.vapi     | 4 ++--
 sdl2.vapi         | 8 ++++----
 5 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/librabbitmq.vapi b/librabbitmq.vapi
index f73b8da..f81434d 100644
--- a/librabbitmq.vapi
+++ b/librabbitmq.vapi
@@ -47,7 +47,7 @@ namespace AMQP {
     public uint8[] bytes;
 
     [CCode (cname = "amqp_empty_bytes")]
-    public static const AMQP.Bytes EMPTY;
+    public const AMQP.Bytes EMPTY;
   }
 
   [SimpleType, CCode (cname = "amqp_decimal_t")]
@@ -68,7 +68,7 @@ namespace AMQP {
     public int encode (AMQP.Bytes encoded, ref size_t offset);
 
     [CCode (cname = "amqp_empty_table")]
-    public static const AMQP.Table EMPTY;
+    public const AMQP.Table EMPTY;
   }
 
   [CCode (cname = "amqp_array_t")]
@@ -77,7 +77,7 @@ namespace AMQP {
     public AMQP.FieldValue[] entries;
 
     [CCode (cname = "amqp_empty_array")]
-    public static const AMQP.Array EMPTY;
+    public const AMQP.Array EMPTY;
   }
 
   [CCode (cname = "amqp_field_value_t")]
diff --git a/sdl2-android.vapi b/sdl2-android.vapi
index 44caa94..787a8d0 100644
--- a/sdl2-android.vapi
+++ b/sdl2-android.vapi
@@ -47,10 +47,10 @@ namespace SDL {
                public static int get_external_storage_state ();
 
                [CCode (cname = "SDL_ANDROID_EXTERNAL_STORAGE_READ")]
-               public static const int EXTERNAL_STORAGE_READ;
+               public const int EXTERNAL_STORAGE_READ;
 
                [CCode (cname = "SDL_ANDROID_EXTERNAL_STORAGE_WRITE")]
-               public static const int EXTERNAL_STORAGE_WRITE;
+               public const int EXTERNAL_STORAGE_WRITE;
        }// Android
 
 
diff --git a/sdl2-mixer.vapi b/sdl2-mixer.vapi
index 57313d7..bb846b5 100644
--- a/sdl2-mixer.vapi
+++ b/sdl2-mixer.vapi
@@ -221,7 +221,7 @@ namespace SDLMixer {
        }// Channel
 
        [CCode (cname = "-1")]
-       public static const SDLMixer.Channel DEFAULT_CHANNEL;
+       public const SDLMixer.Channel DEFAULT_CHANNEL;
 
        [CCode (cname = "int")]
        [SimpleType]
diff --git a/sdl2-net.vapi b/sdl2-net.vapi
index 9791d87..34a2483 100644
--- a/sdl2-net.vapi
+++ b/sdl2-net.vapi
@@ -54,10 +54,10 @@ namespace SDLNet {
                public uint16 port;
 
                [CCode (cname = "INADDR_ANY")]
-               public static const uint ANY;
+               public const uint ANY;
 
                [CCode (cname = "INADDR_NONE")]
-               public static const uint NONE;
+               public const uint NONE;
 
                [CCode (cname = "SDLNet_ResolveHost")]
                public static int from_host (out IPAddress address, string? host, uint16 port);
diff --git a/sdl2.vapi b/sdl2.vapi
index 66f14b4..bcfb5f2 100644
--- a/sdl2.vapi
+++ b/sdl2.vapi
@@ -1202,7 +1202,7 @@ namespace SDL {
        [Compact]
        public struct TextEditingEvent : CommonEvent {
                [CCode (cname = "SDL_TEXTEDITINGEVENT_TEXT_SIZE")]
-               public static const uint8 TEXT_SIZE;
+               public const uint8 TEXT_SIZE;
 
                [CCode (cname = "windowID")]
                uint32 window_id;
@@ -1215,7 +1215,7 @@ namespace SDL {
        [Compact]
        public struct TextInputEvent : CommonEvent {
                [CCode (cname = "SDL_TEXTINPUTEVENT_TEXT_SIZE")]
-               public static const uint8 TEXT_SIZE;
+               public const uint8 TEXT_SIZE;
 
                [CCode (cname = "windowID")]
                uint32 window_id;
@@ -2383,10 +2383,10 @@ namespace SDL {
                [Compact]
                public class Window {
                        [CCode (cname = "SDL_WINDOWPOS_UNDEFINED_MASK")]
-                       public static const uint8 POS_UNDEFINED;
+                       public const uint8 POS_UNDEFINED;
 
                        [CCode (cname = "SDL_WINDOWPOS_CENTERED_MASK")]
-                       public static const uint8 POS_CENTERED;
+                       public const uint8 POS_CENTERED;
 
                        [Version (since = "2.0.4")]
                        [CCode (cname = "SDL_GetGrabbedWindow")]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]