Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • wbox wbox
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wtools
  • wboxwbox
  • Issues
  • #1

Closed
Open
Created Mar 08, 2024 by Gabriel Wlazłowski@gabrielwOwner

warning during compilation

gawlazlo@uan02:/scratch/project_465000708/pecak/massS> cc -O3 -c /pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c -o /pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/wbox.o -std=c99 -I/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c: In function 'wbox_insert':
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:172:45: warning: passing argument 1 of 'wbox_insert_1d' from incompatible pointer type [-Wincompatible-pointer-types]
  172 |         wbox_insert_return = wbox_insert_1d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                             ^~~~~~~~~~~
      |                                             |
      |                                             const wbox_md_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:42:37: note: expected 'const wbox_md_t *' but argument is of type 'const wbox_md_t **'
   42 | int wbox_insert_1d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                    ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:172:58: warning: passing argument 2 of 'wbox_insert_1d' from incompatible pointer type [-Wincompatible-pointer-types]
  172 |         wbox_insert_return = wbox_insert_1d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                                          ^~~~~~~~~~~~
      |                                                          |
      |                                                          const wbox_insert_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:42:70: note: expected 'const wbox_insert_t *' but argument is of type 'const wbox_insert_t **'
   42 | int wbox_insert_1d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:172:72: warning: passing argument 3 of 'wbox_insert_1d' from incompatible pointer type [-Wincompatible-pointer-types]
  172 |         wbox_insert_return = wbox_insert_1d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                                                        ^~~~~~~~~
      |                                                                        |
      |                                                                        wbox_md_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:42:94: note: expected 'wbox_md_t *' but argument is of type 'wbox_md_t **'
   42 | int wbox_insert_1d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                                                                                   ~~~~~~~~~~~^~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:174:45: warning: passing argument 1 of 'wbox_insert_2d' from incompatible pointer type [-Wincompatible-pointer-types]
  174 |         wbox_insert_return = wbox_insert_2d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                             ^~~~~~~~~~~
      |                                             |
      |                                             const wbox_md_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:77:37: note: expected 'const wbox_md_t *' but argument is of type 'const wbox_md_t **'
   77 | int wbox_insert_2d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                    ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:174:58: warning: passing argument 2 of 'wbox_insert_2d' from incompatible pointer type [-Wincompatible-pointer-types]
  174 |         wbox_insert_return = wbox_insert_2d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                                          ^~~~~~~~~~~~
      |                                                          |
      |                                                          const wbox_insert_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:77:70: note: expected 'const wbox_insert_t *' but argument is of type 'const wbox_insert_t **'
   77 | int wbox_insert_2d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:174:72: warning: passing argument 3 of 'wbox_insert_2d' from incompatible pointer type [-Wincompatible-pointer-types]
  174 |         wbox_insert_return = wbox_insert_2d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                                                        ^~~~~~~~~
      |                                                                        |
      |                                                                        wbox_md_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:77:94: note: expected 'wbox_md_t *' but argument is of type 'wbox_md_t **'
   77 | int wbox_insert_2d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                                                                                   ~~~~~~~~~~~^~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:176:45: warning: passing argument 1 of 'wbox_insert_3d' from incompatible pointer type [-Wincompatible-pointer-types]
  176 |         wbox_insert_return = wbox_insert_3d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                             ^~~~~~~~~~~
      |                                             |
      |                                             const wbox_md_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:119:37: note: expected 'const wbox_md_t *' but argument is of type 'const wbox_md_t **'
  119 | int wbox_insert_3d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                    ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:176:58: warning: passing argument 2 of 'wbox_insert_3d' from incompatible pointer type [-Wincompatible-pointer-types]
  176 |         wbox_insert_return = wbox_insert_3d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                                          ^~~~~~~~~~~~
      |                                                          |
      |                                                          const wbox_insert_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:119:70: note: expected 'const wbox_insert_t *' but argument is of type 'const wbox_insert_t **'
  119 | int wbox_insert_3d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:176:72: warning: passing argument 3 of 'wbox_insert_3d' from incompatible pointer type [-Wincompatible-pointer-types]
  176 |         wbox_insert_return = wbox_insert_3d(&wbmd_small, &wbox_insert, &wbmd_big);
      |                                                                        ^~~~~~~~~
      |                                                                        |
      |                                                                        wbox_md_t **
/pfs/lustrep1/projappl/project_465000708/share/wtools/wbox/c/wbox.c:119:94: note: expected 'wbox_md_t *' but argument is of type 'wbox_md_t **'
  119 | int wbox_insert_3d(const wbox_md_t *wbmd_small, const wbox_insert_t *wbox_insert, wbox_md_t *wbmd_big)
      |  

It looks that indeed incorrect type of pointer is passed in the wbox_insert.
@amakowsk Check it.
@pecak

Assignee
Assign to
Time tracking