You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/02/11 12:32:24 UTC

[incubator-nuttx] branch master updated: sched/tcbinfo: Fix warning by discarded qualifiers

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new cafd3e5  sched/tcbinfo: Fix warning by discarded qualifiers
cafd3e5 is described below

commit cafd3e5c4860d598c123f86bbef6d44a05a1a0f1
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Fri Feb 11 16:19:06 2022 +0800

    sched/tcbinfo: Fix warning by discarded qualifiers
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 include/nuttx/sched.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h
index eff21d6..e784a42 100644
--- a/include/nuttx/sched.h
+++ b/include/nuttx/sched.h
@@ -782,8 +782,8 @@ begin_packed_struct struct tcbinfo_s
 
   union
   {
-    uint8_t       u[8];
-    FAR uint16_t *p;
+    uint8_t             u[8];
+    FAR const uint16_t *p;
   } reg_off;
 } end_packed_struct;
 #endif