Skip to content

Fix formatting of user-defined literal operators in udl.h - #241

Merged
jgdumas merged 1 commit into
linbox-team:masterfrom
cxzhong:fix-warnings
May 28, 2026
Merged

Fix formatting of user-defined literal operators in udl.h#241
jgdumas merged 1 commit into
linbox-team:masterfrom
cxzhong:fix-warnings

Conversation

@cxzhong

@cxzhong cxzhong commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

some minor fix for format

Fix

libtool: compile:  /opt/homebrew/opt/llvm/bin/clang++ -DHAVE_CONFIG_H -I. -I../../../../src/kernel/gmp++ -I../../.. -I../../.. -I../../../src/kernel/memory -I../../../src/kernel/system -I../../../src/kernel/recint -I../../../src/kernel -I/opt/homebrew/opt/gmp/include -O2 -march=native -Wall -DNDEBUG -UDEBUG -stdlib=libc++ -MT gmp++_int_mod.lo -MD -MP -MF .deps/gmp++_int_mod.Tpo -c ../../../../src/kernel/gmp++/gmp++_int_mod.C -o gmp++_int_mod.o >/dev/null 2>&1
../../../src/kernel/system/givaro/udl.h:23:31: warning: identifier '_ui32' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   23 | constexpr uint32_t operator"" _ui32(unsigned long long x)
      |                    ~~~~~~~~~~~^~~~~
      |                    operator""_ui32
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang++ -DHAVE_CONFIG_H -I. -I../../../../src/kernel/gmp++ -I../../.. -I../../.. -I../../../src/kernel/memory -I../../../src/kernel/system -I../../../src/kernel/recint -I../../../src/kernel -I/opt/homebrew/opt/gmp/include -O2 -march=native -Wall -DNDEBUG -UDEBUG -stdlib=libc++ -MT gmp++_int_div.lo -MD -MP -MF .deps/gmp++_int_div.Tpo -c ../../../../src/kernel/gmp++/gmp++_int_div.C -o gmp++_int_div.o >/dev/null 2>&1
../../../src/kernel/system/givaro/udl.h:28:31: warning: identifier '_ui16' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   28 | constexpr uint16_t operator"" _ui16(unsigned long long x)
      |                    ~~~~~~~~~~~^~~~~
      |                    operator""_ui16
../../../src/kernel/system/givaro/udl.h:33:30: warning: identifier '_ui8' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   33 | constexpr uint8_t operator"" _ui8(unsigned long long x)
      |                   ~~~~~~~~~~~^~~~
      |                   operator""_ui8
../../../src/kernel/system/givaro/udl.h:38:30: warning: identifier '_i64' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   38 | constexpr int64_t operator"" _i64(unsigned long long x)
      |                   ~~~~~~~~~~~^~~~
      |                   operator""_i64
../../../src/kernel/system/givaro/udl.h:43:30: warning: identifier '_i32' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   43 | constexpr int32_t operator"" _i32(unsigned long long x)
      |                   ~~~~~~~~~~~^~~~
      |                   operator""_i32
../../../src/kernel/system/givaro/udl.h:48:30: warning: identifier '_i16' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   48 | constexpr int16_t operator"" _i16(unsigned long long x)
      |                   ~~~~~~~~~~~^~~~
      |                   operator""_i16
../../../src/kernel/system/givaro/udl.h:53:29: warning: identifier '_i8' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   53 | constexpr int8_t operator"" _i8(unsigned long long x)
      |                  ~~~~~~~~~~~^~~
      |                  operator""_i8
In file included from ../../../../src/kernel/gmp++/gmp++_int_div.C:19:
In file included from ./gmp++/gmp++.h:57:
In file included from ./gmp++/gmp++_int.h:1803:
In file included from ./gmp++/gmp++_int_rand.inl:21:
In file included from ../../../src/kernel/system/givaro/givrandom.h:22:
../../../src/kernel/system/givaro/udl.h:18:31: warning: identifier '_ui64' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   18 | constexpr uint64_t operator"" _ui64(unsigned long long x)
      |                    ~~~~~~~~~~~^~~~~
      |                    operator""_ui64
../../../src/kernel/system/givaro/udl.h:23:31: warning: identifier '_ui32' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   23 | constexpr uint32_t operator"" _ui32(unsigned long long x)
      |                    ~~~~~~~~~~~^~~~~
      |                    operator""_ui32
../../../src/kernel/system/givaro/udl.h:28:31: warning: identifier '_ui16' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
   28 | constexpr uint16_t operator"" _ui16(unsigned long long x)
      |                    ~~~~~~~~~~~^~~~~
      |                    operator""_ui16
../../../src/kernel/system/givaro/udl.h:33:30: warning: identifier '_ui8' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
mv -f .deps/gmp++_int_lib.Tpo .deps/gmp++_int_lib.Plo
   33 | constexpr uint8_t operator"" _ui8(unsigned long long x)
      |                   ~~~~~~~~~~~^~~~
      |                   operator""_ui8

@cxzhong cxzhong closed this Mar 6, 2026
@cxzhong cxzhong reopened this Apr 16, 2026
@jgdumas
jgdumas merged commit 5c33e1f into linbox-team:master May 28, 2026
6 checks passed
@cxzhong

cxzhong commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

Thanks very much

@cxzhong
cxzhong deleted the fix-warnings branch May 28, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants